Skip to content

Commit

Permalink
Add test for literal expressions
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
timholy authored and KristofferC committed Feb 5, 2019
1 parent e629de4 commit 5ed5eb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5ed5eb8

Please sign in to comment.