Add (disabled) test for strings with octal escapes.
@@ -22,6 +22,7 @@ public class Main {
public static void main(String... args) {
testGeneralEscapes();
testUnicodeEscapes();
+ testOctalEscapes();
}
private static void testUnicodeEscapes() {
@@ -40,4 +41,10 @@ public class Main {
assert "\"".length() == 1;
assert "\'".length() == 1;
}
+
+ private static void testOctalEscapes() {
+ // TODO(b/34685920): uncomment when octal escape codes are transformed to avoid jscompiler
+ // strict check.
+ // assert "\u001b[31m".equals("\033[31m");
+ }
}
