Skip to content

Commit 3ab1da5

Browse files
committed
Add test for missing init()
1 parent 03d2014 commit 3ab1da5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ end
122122

123123
@test GlobalsTest.f(2) == 42
124124

125+
@test_throws ErrorException @eval(module NotInitTest
126+
using RuntimeGeneratedFunctions
127+
# RuntimeGeneratedFunctions.init(@__MODULE__) # <-- missing
128+
f = @RuntimeGeneratedFunction(:(x->x+y))
129+
end)

0 commit comments

Comments
 (0)