Skip to content

Commit

Permalink
Added tests for inline cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mpastell committed Dec 27, 2016
1 parent de1e08e commit b61a2a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/cache_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Weave.weave("documents/chunk_cache.noweb", plotlib=nothing, cache=:user);
cached_result = readstring(out)
@test result == cached_result

if VERSION.minor == 3
if VERSION.minor == 5
using Gadfly
isdir("documents/cache") && rm("documents/cache", recursive = true)
#Caching with Gadfly
Expand Down
2 changes: 2 additions & 0 deletions test/documents/chunk_cache.noweb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
y= [2, 5, 12]
@

Some text `j print(10)` and continues with another inline code `j y`.

<<term=true; cache=true>>=
y= [2, 5, 12]
Expand All @@ -26,6 +27,7 @@ y = 1:5
println(y)
@

`j y`

<<cache=true>>=
y = 1:5
Expand Down

0 comments on commit b61a2a0

Please sign in to comment.