ICU-5645 Add a test for incomplete surrogates when converting UTF-16->UTF-8
X-SVN-Rev: 21684
This commit is contained in:
parent
28e08c0c3c
commit
cb0ad33fd6
6
icu4c/source/test/testdata/conversion.txt
vendored
6
icu4c/source/test/testdata/conversion.txt
vendored
@ -1137,6 +1137,12 @@ conversion:table(nofallback) {
|
||||
|
||||
// simple sample, no error handling
|
||||
{ "UTF-8", "a\U0010FFFF", :bin{ 61F48FBFBF }, :intvector{ 0, 1, 1, 1, 1 }, :int{1}, :int{0}, "", "", "" }
|
||||
|
||||
// Verify that incomplete surrogates are handled as an error
|
||||
{ "UTF-8", "a\udc00", :bin{ 61efbfbd }, :intvector{ 0, 1, 1, 1 }, :int{1}, :int{0}, "", "", "" }
|
||||
{ "UTF-8", "a\ud800", :bin{ 61efbfbd }, :intvector{ 0, 1, 1, 1 }, :int{1}, :int{0}, "", "", "" }
|
||||
{ "UTF-8", "a\udc00b", :bin{ 61efbfbd62 }, :intvector{ 0, 1, 1, 1, 2 }, :int{1}, :int{0}, "", "", "" }
|
||||
{ "UTF-8", "a\ud800b", :bin{ 61efbfbd62 }, :intvector{ 0, 1, 1, 1, 2 }, :int{1}, :int{0}, "", "", "" }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user