From 5ed5eb8cf8d79fbe0c6f5b9ce0b14ddbb0cb65fb Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 28 Jan 2019 11:42:31 -0600 Subject: [PATCH] Add test for literal expressions Fixes #22 --- test/misc.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/misc.jl b/test/misc.jl index c1cc0de883e1f6..114d42fb54ba76 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -20,3 +20,9 @@ execute_command(state, state.stack[1], Val{:finish}(), "finish") runframe(@make_stack(complicated_keyword_stuff(1, 2))[1]) @test runframe(ASTInterpreter2.enter_call(complicated_keyword_stuff, 1, 2; x=7, y=33)) == runframe(@make_stack(complicated_keyword_stuff(1, 2; x=7, y=33))[1]) + +# Issue #22 +f22() = string(:(a+b)) +@test step_through(enter_call_expr(:($f22()))) == "a + b" +f22() = string(QuoteNode(:a)) +@test step_through(enter_call_expr(:($f22()))) == ":a"