HADOOP-17630. [JDK 15] TestPrintableString fails due to Unicode 13.0 support. (#2890)
Reviewed-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 156ecc89be
)
This commit is contained in:
parent
bfba6f1f3c
commit
72355c7b6e
@ -76,8 +76,8 @@ public void testNonPrintableCharacters() throws Exception {
|
|||||||
"x\uDB80\uDC00y\uDBFF\uDFFDz\u1050", "x?y?z\u1050");
|
"x\uDB80\uDC00y\uDBFF\uDFFDz\u1050", "x?y?z\u1050");
|
||||||
|
|
||||||
// Unassigned Unicode
|
// Unassigned Unicode
|
||||||
expect("Should replace unassigned U+30000 and U+DFFFF",
|
expect("Should replace unassigned U+DFFFF",
|
||||||
"-\uD880\uDC00-\uDB3F\uDFFF-", "-?-?-");
|
"-\uDB3F\uDFFF-", "-?-");
|
||||||
|
|
||||||
// Standalone surrogate character (not in a pair)
|
// Standalone surrogate character (not in a pair)
|
||||||
expect("Should replace standalone surrogate U+DB80", "x\uDB80yz", "x?yz");
|
expect("Should replace standalone surrogate U+DB80", "x\uDB80yz", "x?yz");
|
||||||
|
Loading…
Reference in New Issue
Block a user