mirror of https://github.com/mpastell/Weave.jl
Added tests for inline cache
parent
de1e08e1ef
commit
b61a2a01b0
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
@ -26,6 +27,7 @@ y = 1:5
|
|||
println(y)
|
||||
@
|
||||
|
||||
`j y`
|
||||
|
||||
<<cache=true>>=
|
||||
y = 1:5
|
||||
|
|
Loading…
Reference in New Issue