Skip to content

Commit

Permalink
Sync test suite to latest code change
Browse files Browse the repository at this point in the history
  • Loading branch information
dgp committed Sep 25, 2024
1 parent 79ecc38 commit 786210a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/expr.test
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@ test expr-11.14 {CompileAddExpr: runtime error} {
} {1 {cannot use a list as right operand of "+"}}
test expr-11.15 {CompileAddExpr: runtime error} {
list [catch {expr {{1 2 3}+24.0}} msg] $msg
} {1 {cannot use a list as left operand of "+"}}
} {1 {cannot use non-numeric string "1 2 3" as left operand of "+"}}
test expr-11.16 {CompileAddExpr: runtime error} {
list [catch {expr {~[dict create foo bar]}} msg] $msg
} {1 {cannot use a list as operand of "~"}}
} {1 {cannot use non-numeric string "foo bar" as operand of "~"}}

test expr-12.1 {CompileMultiplyExpr: just unary expr} {expr ~4} -5
test expr-12.2 {CompileMultiplyExpr: just unary expr} {expr --5} 5
Expand Down

0 comments on commit 786210a

Please sign in to comment.