Remove arbitrary case conversion tests.
Since upper/lower case conversions are unspecified by the standard, we convert ASCII characters only, and a few other characters for testing purposes. Because these are just random cases, it is better to remove them before the release. At some point we could add a unicode compatible case conversion which can be enabled at compile time. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -20,14 +20,6 @@ assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toLower
|
||||
assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toUpperCase()
|
||||
== "0123456789ABCDEFGHIJKLMNOPQRSTUVWXZYABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
||||
|
||||
assert ("\u0130".toLowerCase() == "i\u0307");
|
||||
assert ("\xdf".toUpperCase() == "SS");
|
||||
assert ("\u1fd7".toUpperCase() == "\u0399\u0308\u0342");
|
||||
|
||||
assert ("H\u0130-+".toLowerCase() == "hi\u0307-+");
|
||||
assert ("\xdf\u1fd7\xdf".toUpperCase() == "SS\u0399\u0308\u0342SS");
|
||||
assert ("\u0130\u0130\u0130".toLowerCase() == "i\u0307i\u0307i\u0307");
|
||||
|
||||
// Although codepoint 0x10400 and 0x10428 are an upper-lowercase pair,
|
||||
// we must not do their conversion in JavaScript. We must also ignore
|
||||
// stray surrogates.
|
||||
|
||||
Reference in New Issue
Block a user