Skip to content

Commit

Permalink
Added another test
Browse files Browse the repository at this point in the history
  • Loading branch information
RealA10N committed Aug 12, 2024
1 parent 699ed5f commit a2df73e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parse/type_declaration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ func TestTypeDeclarationMultipleLabels(t *testing.T) {
testExpectedTypeDeclaration(t, src, expected)
}

func TestTypeDeclarationLongOneLine(t *testing.T) {
src := `type $struct { .a .b .c $8 *2102 ^1337 * ^ * .d .e .f $1234 }`
expected := `type $struct {
.a .b .c $8 *2102 ^1337 * ^ *
.d .e .f $1234
}`
testExpectedTypeDeclaration(t, src, expected)
}

// MARK: Helpers

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

0 comments on commit a2df73e

Please sign in to comment.