tests: Test string escaping in the formatter

This commit is contained in:
James Westman 2023-09-28 16:33:46 -05:00
parent ac971f9fd6
commit abc90d7eae
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Label {
label: "\"'\'\t\n\\'";
}

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Label {
label: '"\'\'\t\n\\\'';
}

View file

@ -45,3 +45,4 @@ class TestFormatter(unittest.TestCase):
self.assert_format_test("in1.blp", "out.blp")
self.assert_format_test("in2.blp", "out.blp")
self.assert_format_test("correct1.blp", "correct1.blp")
self.assert_format_test("string_in.blp", "string_out.blp")