Added tests for inline cache

pull/80/head
Matti Pastell 2016-12-27 22:29:04 +02:00
parent de1e08e1ef
commit b61a2a01b0
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Weave.weave("documents/chunk_cache.noweb", plotlib=nothing, cache=:user);
cached_result = readstring(out) cached_result = readstring(out)
@test result == cached_result @test result == cached_result
if VERSION.minor == 3 if VERSION.minor == 5
using Gadfly using Gadfly
isdir("documents/cache") && rm("documents/cache", recursive = true) isdir("documents/cache") && rm("documents/cache", recursive = true)
#Caching with Gadfly #Caching with Gadfly

View File

@ -3,6 +3,7 @@
y= [2, 5, 12] y= [2, 5, 12]
@ @
Some text `j print(10)` and continues with another inline code `j y`.
<<term=true; cache=true>>= <<term=true; cache=true>>=
y= [2, 5, 12] y= [2, 5, 12]
@ -26,6 +27,7 @@ y = 1:5
println(y) println(y)
@ @
`j y`
<<cache=true>>= <<cache=true>>=
y = 1:5 y = 1:5