Skip to content

Commit 7ac56b5

Browse files
authored
add a test for calling Meta.parse error (#238)
1 parent beca7c5 commit 7ac56b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/interpret.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,3 +479,7 @@ catch
479479
end
480480
compiled_calls = names(JuliaInterpreter.CompiledCalls; all=true)
481481
@test any(x -> startswith(string(x), "ccall_clock_libc"), compiled_calls)
482+
483+
# https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/194
484+
f() = Meta.lower(Main, Meta.parse("(a=1,0)"))
485+
@test @interpret f() == f()

0 commit comments

Comments
 (0)