1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-19 09:47:40 +00:00

Add truthy? to core.

This commit is contained in:
Andrew Chambers
2019-12-01 14:34:41 +13:00
parent bf609445c1
commit ded08b6e1e
2 changed files with 4 additions and 0 deletions

View File

@@ -314,5 +314,8 @@
(assert (= y 1) "regression #137 (5)")
(assert (= z 2) "regression #137 (6)")
(assert (= true ;(map truthy? [0 "" true @{} {} [] '()])) "truthy values")
(assert (= false ;(map truthy? [nil false])) "non-truthy values")
(end-suite)