Skip to content

Commit 3ec1590

Browse files
committed
test: add test case for negation operator
1 parent 909139c commit 3ec1590

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+
{"=-A1", "UnaryExpr(Operator: -, Operand: CellExpr(A1))"},
1011
{"=10%", "UnaryExpr(Operator: %, Operand: LiteralExpr(Value: 10))"},
1112
{"=A1^B1", "BinaryExpr(Left: CellExpr(A1), Operator: ^, Right: CellExpr(B1))"},
1213
{"=A1&B1", "BinaryExpr(Left: CellExpr(A1), Operator: &, Right: CellExpr(B1))"},

0 commit comments

Comments
 (0)