Skip to content

Commit

Permalink
support print variants on diff Julia versions
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Dec 20, 2020
1 parent fb4904b commit 533676e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ using Test
stmt = thunk.args[1].code[end] # the return
@test JuliaInterpreter.get_return_node(stmt) isa Core.SSAValue

@test string(JuliaInterpreter.parametric_type_to_expr(Base.Iterators.Stateful{String})) == "Base.Iterators.Stateful{String, VS}"
@test string(JuliaInterpreter.parametric_type_to_expr(Base.Iterators.Stateful{String}))
("Base.Iterators.Stateful{String, VS}", "(Base.Iterators).Stateful{String, VS}")
end

0 comments on commit 533676e

Please sign in to comment.