equal
deleted
inserted
replaced
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * |
25 * |
26 * @test |
26 * @test |
27 * @bug 4533872 4915683 4985217 5017280 |
27 * @bug 4533872 4915683 4985217 5017280 6937112 |
28 * @summary Unit tests for supplementary character support (JSR-204) |
28 * @summary Unit tests for supplementary character support (JSR-204) |
29 */ |
29 */ |
30 |
30 |
31 public class Supplementary { |
31 public class Supplementary { |
32 |
32 |
55 "\uDC00abcd\uDBFF\uDFFFefgh\uD800\uDC009ik\uDC00\uDC00lm\uDC00no\uD800", |
55 "\uDC00abcd\uDBFF\uDFFFefgh\uD800\uDC009ik\uDC00\uDC00lm\uDC00no\uD800", |
56 /* 111 111111 1 22 2 |
56 /* 111 111111 1 22 2 |
57 0 1 2345 678 9 012 345678 9 01 2 */ |
57 0 1 2345 678 9 012 345678 9 01 2 */ |
58 "\uD800\uDC00!#$\uD800%&\uD800\uDC00;+\uDC00<>;=^\uDC00\\@\uD800\uDC00", |
58 "\uD800\uDC00!#$\uD800%&\uD800\uDC00;+\uDC00<>;=^\uDC00\\@\uD800\uDC00", |
59 |
59 |
60 // includes an undefined supprementary characters in Unicode 4.0.0 |
60 // includes an undefined supplementary character in Unicode 4.0.0 |
61 /* 1 11 1 1111 1 |
61 /* 1 11 1 1111 1 |
62 0 1 2345 6 789 0 12 3 4567 8 */ |
62 0 1 2345 6 789 0 12 3 4567 8 */ |
63 "\uDB40\uDE00abc\uDE01\uDB40de\uDB40\uDE02f\uDB40\uDE03ghi\uDB40\uDE02", |
63 "\uDB40\uDE00abc\uDE01\uDB40de\uDB40\uDE02f\uDB40\uDE03ghi\uDB40\uDE02", |
64 }; |
64 }; |
65 |
65 |
149 "fedcb\uDC00afedc\uD800\uDC00ba\uD800\uD800fed\uD800\uDC00cba", |
149 "fedcb\uDC00afedc\uD800\uDC00ba\uD800\uD800fed\uD800\uDC00cba", |
150 "\uDC00tr\uD800\uDC00pon\uDC00mlk\uD800\uDC00jih\uD800gfed\uD800", |
150 "\uDC00tr\uD800\uDC00pon\uDC00mlk\uD800\uDC00jih\uD800gfed\uD800", |
151 "\uD800on\uDC00ml\uDC00\uDC00ki9\uD800\uDC00hgfe\uDBFF\uDFFFdcba\uDC00", |
151 "\uD800on\uDC00ml\uDC00\uDC00ki9\uD800\uDC00hgfe\uDBFF\uDFFFdcba\uDC00", |
152 "\uD800\uDC00@\\\uDC00^=;><\uDC00+;\uD800\uDC00&%\uD800$#!\uD800\uDC00", |
152 "\uD800\uDC00@\\\uDC00^=;><\uDC00+;\uD800\uDC00&%\uD800$#!\uD800\uDC00", |
153 |
153 |
154 // includes an undefined supprementary characters in Unicode 4.0.0 |
154 // includes an undefined supplementary character in Unicode 4.0.0 |
155 "\uDB40\uDE02ihg\uDB40\uDE03f\uDB40\uDE02ed\uDB40\uDE01cba\uDB40\uDE00", |
155 "\uDB40\uDE02ihg\uDB40\uDE03f\uDB40\uDE02ed\uDB40\uDE01cba\uDB40\uDE00", |
156 }; |
156 }; |
157 |
157 |
158 // Additional input data & expected result for test3() |
158 // Additional input data & expected result for test3() |
159 static final String[][] testdata1 = { |
159 static final String[][] testdata1 = { |