mirror of https://github.com/mpastell/Weave.jl
Add test to caching
parent
b61a2a01b0
commit
2715baa347
|
@ -20,6 +20,18 @@ Weave.weave("documents/chunk_cache.noweb", plotlib=nothing, cache=:user);
|
|||
cached_result = readstring(out)
|
||||
@test result == cached_result
|
||||
|
||||
# cache = :all
|
||||
isdir("documents/cache") && rm("documents/cache", recursive = true)
|
||||
out = "documents/chunk_cache.md"
|
||||
Weave.weave("documents/chunk_cache.noweb", cache=:all);
|
||||
result = readstring(out)
|
||||
rm(out)
|
||||
Weave.weave("documents/chunk_cache.noweb", cache=:all);
|
||||
cached_result = readstring(out)
|
||||
@test result == cached_result
|
||||
|
||||
|
||||
|
||||
if VERSION.minor == 5
|
||||
using Gadfly
|
||||
isdir("documents/cache") && rm("documents/cache", recursive = true)
|
||||
|
|
Loading…
Reference in New Issue