Skip to content

Commit

Permalink
test: len test case for array input
Browse files Browse the repository at this point in the history
  • Loading branch information
yazaldefilimone committed Feb 25, 2024
1 parent 9e751c4 commit 5d9a833
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/evaluator/tests/len.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ describe("Evaluator", () => {
input: `len("hello world")`,
expected: 11,
},
{
input: `len([0,1,2])`,
expected: 3,
},
{
input: `len(1)`,
expected: "argument to `len` not supported, got INTEGER",
Expand Down

0 comments on commit 5d9a833

Please sign in to comment.