We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1d01ad + 39bcb13 commit ee09c8cCopy full SHA for ee09c8c
test/runtests.jl
@@ -142,3 +142,14 @@ end
142
@test_throws Exception Shape("Circle")
143
@test_throws Exception convert(Shape, "Circle")
144
end
145
+
146
+struct Bad end
147
+@testset "Error messages" begin
148
+ @macroexpand @batteries Bad
149
+ @macroexpand @batteries Bad typesalt = 0xb6a4b9eeeb03b58b
150
+ if VERSION >= v"1.7"
151
+ @test_throws "`typesalt` must be literally `nothing` or an unsigned integer." @macroexpand @batteries Bad typesalt = "ouch"
152
+ @test_throws "Unsupported keyword." @macroexpand @batteries Bad does_not_exist = true
153
+ @test_throws "Bad keyword argument value" @macroexpand @batteries Bad hash=:nonsense
154
+ end
155
+end
0 commit comments