Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khinsen committed Jun 7, 2013
1 parent 6eacf63 commit 2674016
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/native_tests/native_macros.hy
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@
(assert (= phase "load"))
(assert (= (phase-when-compiling) "compile"))

(setv initialized False)
(eval-and-compile
(setv initialized True))
(defmacro test-initialized [] initialized)
(assert initialized)
(assert (test-initialized))

0 comments on commit 2674016

Please sign in to comment.