Add print test for if

This commit is contained in:
Anton Medvedev
2025-03-08 12:31:51 +01:00
parent 26eebbe70c
commit ebd5b4e426
+1
View File
@@ -83,6 +83,7 @@ func TestPrint(t *testing.T) {
{`(2 ** 2) ** 3`, `(2 ** 2) ** 3`},
{`(3 + 5) / (5 % 3)`, `(3 + 5) / (5 % 3)`},
{`(-(1+1)) == 2`, `-(1 + 1) == 2`},
{`if true { 1 } else { 2 }`, `true ? 1 : 2`},
}
for _, tt := range tests {