History log of /libcore/luni/src/test/java/libcore/java/lang/CharacterTest.java
Revision Date Author Comments
8070af12e129cf6c9c82cf8dd3116aa20a2ebd6d 01-Apr-2016 Yi Kong <yikong@google.com> Port max,min,sum,hashCode,BYTES for basic data types

We implemented these methods/fields for some basic data types, we
should do the same for all the rest for consistency.

Bug: 27960078
Change-Id: I94711ee8d437e932c423579cd7146d63cbb3c615
(cherry picked from commit cf86f3319e738c76c5e97ad95bb8a4e30654a787)
a48e99b0e83b1c9150b15c7d7911ca348b287b4b 29-Jul-2014 Elliott Hughes <enh@google.com> Fix Character.getDirectionality.

Previously we'd throw ArrayIndexOutOfBoundsException for U+2066..U+2069.
Now we'll return DIRECTIONALITY_UNDEFINED. I've exposed (via @hide) the
underlying icu4c implementation so that frameworks code at least can work
with the new explicit bidi formatting characters.

Bug: 15492712

(cherry picked from commit 2c4a09f2af911621b415e84ee028b768ee0a3fcb)

Change-Id: Ifca5097ccad10227ce7073f23b7610f45aab999d
2c4a09f2af911621b415e84ee028b768ee0a3fcb 29-Jul-2014 Elliott Hughes <enh@google.com> Fix Character.getDirectionality.

Previously we'd throw ArrayIndexOutOfBoundsException for U+2066..U+2069.
Now we'll return DIRECTIONALITY_UNDEFINED. I've exposed (via @hide) the
underlying icu4c implementation so that frameworks code at least can work
with the new explicit bidi formatting characters.

Bug: 15492712
Change-Id: I96583c7e1c6be26d3f1a857615a1042d58e9feaf
0aff1dd0b4be1b8d8cb45b59079ca883a1b3205a 17-Jun-2014 Elliott Hughes <enh@google.com> Remove.

(cherry-pick of 63744c884dd4b4f4307f2b021fb894af164972af.)

Change-Id: Ibf79a402e1bad98a262e380fcee3d35c127ae6d5
63744c884dd4b4f4307f2b021fb894af164972af 17-Jun-2014 Elliott Hughes <enh@google.com> Remove.

Change-Id: Ibf79a402e1bad98a262e380fcee3d35c127ae6d5
c12b560fc910b2dcda8f7adf092e7497e801f9db 19-May-2014 Neil Fuller <nfuller@google.com> Fix test_isWhitespace_against_icu4c

ICU4C and the RI disagree about one character. Add the
special case to the test so it can pass. Also fix
isSpaceChar_against_icu4c so it asserts something, and
add the special case there too.

Bug: 9690863
Change-Id: I389690e5c598b9e2f04015b0bc14799b163a6adf
48819fe0b9130618a430ec52b3f8526c4c0a5f8a 09-Jan-2014 Narayan Kamath <narayan@google.com> java7: Implement Character.UnicodeScript

Implemented in terms of u_getPropertyValueEnum(UCHAR_SCRIPT,)
and uscript_getScript from ICU4C.

Since the Java 7 API specifies a subset of scripts known to
ICU4C, we map scripts not specified in the API to
UnicodeScript.UNKNOWN.

Like the UnicodeBlock API, our matching is far more lenient than
the RI.

Change-Id: I5247baddb2dde42d6a2042609370daeb616fe419
a7752f4d22097346dd7849b92b9f36d0a0a7a8f3 03-Jul-2013 Elliott Hughes <enh@google.com> Fix Character.isWhitespace and Character.isSpaceChar.

Also add tests so we can't drift again in future.

Bug: 9690863
Change-Id: If9d43a67a4879cb5c6b8e6cab5f7ffd7a93035ac
2d99feb311425dda5e5e2223626d30eb5a0ae95a 02-Jul-2013 Elliott Hughes <enh@google.com> Implement Character.isAlphabetic and Character.isIdeographic.

Bug: 3484927
Change-Id: I0360fca2adf366009a5c2ae0e6a18f4e975c481a
35edbd5fca5f4180fe7a57101a38ea01a2d9cc62 01-Jul-2013 Elliott Hughes <enh@google.com> Bring Character.UnicodeBlock up to Unicode 6.0.

Bug: 3484927
Bug: 9656330
Change-Id: I34dbf3398ed955a6c621e154a7c0e4c0b51b9ebd
0ebd342f96a7dc74a1e9e015ddca1484ee0890c4 09-Oct-2012 Craig Cornelius <ccornelius@google.com> Track changes caused by the ICU 49.2 upgrade.

(cherry-pick of 0e996f766f975305a484b40809b6b720c0046980.)

Change-Id: I503be2cebe8664a624de7b84f655b646db6e86f7
0e996f766f975305a484b40809b6b720c0046980 09-Oct-2012 Craig Cornelius <ccornelius@google.com> Track changes caused by the ICU 49.2 upgrade.

Change-Id: I955d4315fdff694b3d35cf7072b77c816ff2d977
4f5a696869e0348cf21dad9050d59b20849aff96 26-Feb-2011 Elliott Hughes <enh@google.com> Add new java.lang.Character functionality.

Bug: 3484927
Change-Id: I561c927bbd0ef2e801d38d9c3a6250b1d3f65b0d
4557728efb66c455a52b7669a8eefef7a9e54854 11-Aug-2010 Jesse Wilson <jessewilson@google.com> Moving tests to be under the libcore.* package.

This is indended to make it easier to run on VMs that restrict the packages
from which application classes can be loaded. For example, on the RI you need
to use the bootclasspath to load these tests.

Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af