Skip to content

Commit 909139c

Browse files
committed
test: add test case for % operator
1 parent 936fde7 commit 909139c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ func TestParse(t *testing.T) {
77
src string
88
expected string
99
}{
10+
{"=10%", "UnaryExpr(Operator: %, Operand: LiteralExpr(Value: 10))"},
1011
{"=A1^B1", "BinaryExpr(Left: CellExpr(A1), Operator: ^, Right: CellExpr(B1))"},
1112
{"=A1&B1", "BinaryExpr(Left: CellExpr(A1), Operator: &, Right: CellExpr(B1))"},
1213
{"=1<>2", "BinaryExpr(Left: LiteralExpr(Value: 1), Operator: <>, Right: LiteralExpr(Value: 2))"},

0 commit comments

Comments
 (0)