add interop, defn, random

This commit is contained in:
Quentin Leonetti
2019-07-15 21:30:15 +02:00
parent ce3cf9985e
commit f353b674b3
3 changed files with 31 additions and 0 deletions

View File

@@ -46,8 +46,13 @@
(def addOne (lambda (a) (add a 1)))
(test "def - value" aaa 123)
(test "def - func" (addOne 4) 5)
(defn addTwo (a) (add 2 a))
(test "defn" (addTwo 4) 6)
; Generics
(test "str" (str 1 4 "-" (add 3 4) ".jpg") "14-7.jpg")
; Interop
(test "interop" ((of (of js "Math") "max") 2 4) 4)
)