Skip to content

Commit

Permalink
test: Adjust test case for list literal
Browse files Browse the repository at this point in the history
A non-existing context entry results in `null`. Rewrite the test case to keep the expectation that the evaluation fails.
  • Loading branch information
saig0 committed Sep 5, 2023
1 parent 0d907f8 commit 07c0d5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ class InterpreterListExpressionTest

it should "fail if one element fails" in {

eval("[1, {}.x]") should be(
ValError("context contains no entry with key 'x'"))
eval("[1, x]") should be(
ValError("No variable found with name 'x'"))
}

it should "be compared with '='" in {
Expand Down

0 comments on commit 07c0d5a

Please sign in to comment.