Skip to content

Commit a2df73e

Browse files
committed
Added another test
1 parent 699ed5f commit a2df73e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

parse/type_declaration_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ func TestTypeDeclarationMultipleLabels(t *testing.T) {
4545
testExpectedTypeDeclaration(t, src, expected)
4646
}
4747

48+
func TestTypeDeclarationLongOneLine(t *testing.T) {
49+
src := `type $struct { .a .b .c $8 *2102 ^1337 * ^ * .d .e .f $1234 }`
50+
expected := `type $struct {
51+
.a .b .c $8 *2102 ^1337 * ^ *
52+
.d .e .f $1234
53+
}`
54+
testExpectedTypeDeclaration(t, src, expected)
55+
}
56+
4857
// MARK: Helpers
4958

5059
func testExpectedTypeDeclaration(t *testing.T, src, expected string) {

0 commit comments

Comments
 (0)