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:
parent
f6a4ddf758
commit
db11c74027
@ -43,6 +43,8 @@
|
||||
;=>7
|
||||
(if (list 1 2 3) 7 8)
|
||||
;=>7
|
||||
(= (list) nil)
|
||||
;=>false
|
||||
|
||||
|
||||
;; Testing 1-way if form
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user