Skip to content

Commit

Permalink
add a test and fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 18, 2019
1 parent b46b1ef commit e8f07df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ end
@test_broken stc == sti

# issue #3
@test @interpret(joinpath("/home/julia/base", "sysimg.jl")) == "/home/julia/base/sysimg.jl"
@test @interpret(joinpath("/home/julia/base", "sysimg.jl")) == joinpath("/home/julia/base", "sysimg.jl")
@test @interpret(10.0^4) == 10.0^4
# issue #6
@test @interpret(Array.body.body.name) === Array.body.body.name
Expand Down Expand Up @@ -608,3 +608,8 @@ using LinearAlgebra, SparseArrays, Random
b = rand(n)
@test @interpret(solveit(A, b)) == solveit(A, b)
end

@testset "issue 351" begin
f() = map(x -> 2x, 1:10)
@test @interpret(f()) == f()
end

0 comments on commit e8f07df

Please sign in to comment.