Skip to content

Commit

Permalink
tests: updated len() tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed May 28, 2024
1 parent f0e6326 commit 76dc2eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/len.rn
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ class Test

print(len(Test())) # 10
print(len("test")) # 4
print(len([1,2,3])) # 3
print(len([1,2,3])) # 3
print(len({"some": 123, "this": "ok"}))
print(len(true))
print(len(false))

try {
print(len(234))
} catch as err {
print(err) # TypeError
}

0 comments on commit 76dc2eb

Please sign in to comment.