mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Add print test for if
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user