https://bugzilla.gnome.org/show_bug.cgi?id=664689
assert (s == "Copyright ©");
}
+void test_simple_escape_chars () {
+ string s = "\b\f\n\r\t\v";
+ s = s.escape ();
+ assert (s == "\\b\\f\\n\\r\\t\\v");
+ assert (s.compress () == "\b\f\n\r\t\v");
+}
+
void main () {
// Test case for the bug report 704709
test_x_escape_chars ();
test_u_escape_chars ();
+
+ // Test case for the bug report 664689
+ test_simple_escape_chars ();
}
case 'n':
case 'r':
case 't':
+ case 'v':
case 'a':
case 'A':
case 'p':
case 'n':
case 'r':
case 't':
+ case 'v':
current++;
token_length_in_chars++;
break;
case 'n':
case 'r':
case 't':
+ case 'v':
case '$':
current++;
token_length_in_chars++;