diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/literals.check | 2 | ||||
-rw-r--r-- | test/files/run/literals.scala | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/literals.check b/test/files/run/literals.check index fc495283f4..5e336089fa 100644 --- a/test/files/run/literals.check +++ b/test/files/run/literals.check @@ -1,6 +1,8 @@ test '\u0024' == '$' was successful test '\u005f' == '_' was successful test 65.asInstanceOf[char] == 'A' was successful +test "\141\142" == "ab" was successful +test "\0x61\0x62".trim() == "x61\0x62" was successful test 01 == 1 was successful test 010 == 8 was successful diff --git a/test/files/run/literals.scala b/test/files/run/literals.scala index 15dbe0c8c0..6126a9873c 100644 --- a/test/files/run/literals.scala +++ b/test/files/run/literals.scala @@ -36,6 +36,8 @@ object Test { check_success("'\\u0024' == '$'", '\u0024', '$'); check_success("'\\u005f' == '_'", '\u005f', '_'); check_success("65.asInstanceOf[char] == 'A'", 65.asInstanceOf[char], 'A'); + check_success("\"\\141\\142\" == \"ab\"", "\141\142", "ab"); + check_success("\"\\0x61\\0x62\".trim() == \"x61\\0x62\"", "\0x61\0x62".trim(), "x61\0x62"); Console.println; |