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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user