Skip to content

Commit a962169

Browse files
author
Zibi Braniecki
committed
Add a test for standalone comment serialization
1 parent 12bd77a commit a962169

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/syntax/test_serializer.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ def test_comment_section(self):
112112
"""
113113
self.assertEqual(pretty_ftl(input), dedent_ftl(input))
114114

115+
def test_comment_standalone(self):
116+
input = """\
117+
foo = Foo
118+
119+
// A multiline
120+
121+
bar = Bar
122+
"""
123+
self.assertEqual(pretty_ftl(input), dedent_ftl(input))
124+
115125
def test_multiline_with_placeable(self):
116126
input = """\
117127
foo =

0 commit comments

Comments
 (0)