Skip to content

Commit 3df78d9

Browse files
committed
Add print test for if
1 parent fdba92b commit 3df78d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ast/print_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func TestPrint(t *testing.T) {
8383
{`(2 ** 2) ** 3`, `(2 ** 2) ** 3`},
8484
{`(3 + 5) / (5 % 3)`, `(3 + 5) / (5 % 3)`},
8585
{`(-(1+1)) == 2`, `-(1 + 1) == 2`},
86+
{`if true { 1 } else { 2 }`, `true ? 1 : 2`},
8687
}
8788

8889
for _, tt := range tests {

0 commit comments

Comments
 (0)