1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-26 14:22:25 +03:00

Add tests for problems uncovered during forth self-hosted tests

This commit is contained in:
Chouser 2015-02-19 18:37:21 -05:00
parent f6a4ddf758
commit db11c74027
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,8 @@
;=>7
(if (list 1 2 3) 7 8)
;=>7
(= (list) nil)
;=>false
;; Testing 1-way if form

View File

@ -21,6 +21,10 @@
; "exc:" "my exception"
;=>7
;;; Test that throw is a function:
(try* (map throw [7]) (catch* exc exc))
;=>7
;;
;; Testing builtin functions