1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

step9: Make test of throwing a hash-map deferrable.

According to the guide, hash-maps are deferrable until step A.
This commit is contained in:
Ben Harris 2019-05-01 12:15:14 +01:00
parent c1ede37a15
commit 1fcac410b3

View File

@ -3,8 +3,6 @@
(throw "err1")
;/.*([Ee][Rr][Rr][Oo][Rr]|[Ee]xception).*err1.*
(throw {:msg "err2"})
;/.*([Ee][Rr][Rr][Oo][Rr]|[Ee]xception).*msg.*err2.*
;;
;; Testing try*/catch*
@ -92,6 +90,10 @@
;; ------- Deferrable Functionality ----------
;; ------- (Needed for self-hosting) -------
;; Testing throwing a hash-map
(throw {:msg "err2"})
;/.*([Ee][Rr][Rr][Oo][Rr]|[Ee]xception).*msg.*err2.*
;; Testing symbol and keyword functions
(symbol? :abc)
;=>false