mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: Test string escaping in the formatter
This commit is contained in:
parent
ac971f9fd6
commit
abc90d7eae
3 changed files with 11 additions and 0 deletions
5
tests/formatting/string_in.blp
Normal file
5
tests/formatting/string_in.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: "\"'\'\t\n\\'";
|
||||
}
|
5
tests/formatting/string_out.blp
Normal file
5
tests/formatting/string_out.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: '"\'\'\t\n\\\'';
|
||||
}
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue