Add test to caching

pull/80/head
Matti Pastell 2016-12-28 01:12:53 +02:00
parent b61a2a01b0
commit 2715baa347
1 changed files with 12 additions and 0 deletions

View File

@ -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)