JuliaInterpreter.jl icon indicating copy to clipboard operation
JuliaInterpreter.jl copied to clipboard

WIP add a test for @interpret^2

Open KristofferC opened this issue 6 years ago • 5 comments

Closes #228

KristofferC avatar Mar 31 '19 13:03 KristofferC

Actually:

julia> JuliaInterpreter.disable_recycle[] = true
true

julia> f() = @interpret sin(2.0)
f (generic function with 1 method)

julia> f()
0.9092974268256817

julia> @interpret f()
1.0

KristofferC avatar Mar 31 '19 13:03 KristofferC

Codecov Report

Merging #252 into master will increase coverage by 0.05%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
+ Coverage   87.15%   87.21%   +0.05%     
==========================================
  Files          14       14              
  Lines        1985     1986       +1     
==========================================
+ Hits         1730     1732       +2     
+ Misses        255      254       -1
Impacted Files Coverage Δ
src/construct.jl 92.21% <100%> (+0.03%) :arrow_up:
src/interpret.jl 86.68% <0%> (+0.28%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7deef44...5a22f34. Read the comment docs.

codecov-io avatar Mar 31 '19 13:03 codecov-io

Codecov Report

Merging #252 into master will increase coverage by 0.05%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
+ Coverage   87.15%   87.21%   +0.05%     
==========================================
  Files          14       14              
  Lines        1985     1986       +1     
==========================================
+ Hits         1730     1732       +2     
+ Misses        255      254       -1
Impacted Files Coverage Δ
src/construct.jl 92.21% <100%> (+0.03%) :arrow_up:
src/interpret.jl 86.68% <0%> (+0.28%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7deef44...5a22f34. Read the comment docs.

codecov-io avatar Mar 31 '19 13:03 codecov-io

I'd rather have a clear understanding of what steps in logic fail under these circumstances. (Maybe you do, but I don't.)

timholy avatar Mar 31 '19 16:03 timholy

Hence WIP :)

KristofferC avatar Mar 31 '19 17:03 KristofferC