Permalink
Browse files

extras/test fixes due to recent macro and sprint changes

  • Loading branch information...
1 parent 1a16db3 commit f0ddb0f34948c0a958d38a6dfe200e9228c5fed6 @HarlanH HarlanH committed Sep 21, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 extras/test.jl
  2. +1 −1 test/test_test.jl
View
@@ -99,13 +99,13 @@ end
# that does the real work
macro test(ex)
quote
- $_test(expr(:quote, ex), true)
+ $(_test(expr(:quote, ex), true))
end
end
macro testfails(ex)
quote
- $_test(expr(:quote, ex), false)
+ $(_test(expr(:quote, ex), false))
end
end
View
@@ -31,7 +31,7 @@ test_group("exception tests")
@testfails throws_exception(complex(1,2) > 0, SystemError)
test_group("printing tests")
-@test sprint(show, :(1+2)) == "+(1,2)"
+@test sprint(show, :(1+2)) == ":( +(1, 2) )"
@test prints(print_joined, ([1,2,3], " : "), "1 : 2 : 3") # prints is a helper
@testfails prints(print_joined, ([1,2,3], " ! "), "1 : 2 : 3")

0 comments on commit f0ddb0f

Please sign in to comment.