]> gitweb.factorcode.org Git - factor.git/blobdiff - core/strings/parser/parser-tests.factor
strings.parser: fix bug with octal escape followed by more numbers
[factor.git] / core / strings / parser / parser-tests.factor
index 441177eea44d92ee4c0062bbe1f780ff33db66e2..42bf70932ef7dd4a551e9aae17017c22eac0acc6 100644 (file)
@@ -29,6 +29,7 @@ USING: accessors eval kernel lexer strings.parser tools.test ;
 { "foo bar" } [ "\"foo \\\nbar\"" eval( -- obj ) ] unit-test
 
 { "a" } [ "\"\\141\"" eval( -- obj ) ] unit-test
+{ "a1" } [ "\"\\1411\"" eval( -- obj ) ] unit-test
 { "\0" } [ "\"\\0\"" eval( -- obj ) ] unit-test
 { "\x01" } [ "\"\\01\"" eval( -- obj ) ] unit-test
 { "\n" } [ "\"\\012\"" eval( -- obj ) ] unit-test