From b61a2a01b023048785d7efb66308de4e9e4d1d9e Mon Sep 17 00:00:00 2001 From: Matti Pastell Date: Tue, 27 Dec 2016 22:29:04 +0200 Subject: [PATCH] Added tests for inline cache --- test/cache_test.jl | 2 +- test/documents/chunk_cache.noweb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cache_test.jl b/test/cache_test.jl index ec03b65..ab94f89 100644 --- a/test/cache_test.jl +++ b/test/cache_test.jl @@ -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 diff --git a/test/documents/chunk_cache.noweb b/test/documents/chunk_cache.noweb index 1eaed4b..c5ebca7 100644 --- a/test/documents/chunk_cache.noweb +++ b/test/documents/chunk_cache.noweb @@ -3,6 +3,7 @@ y= [2, 5, 12] @ +Some text `j print(10)` and continues with another inline code `j y`. <>= y= [2, 5, 12] @@ -26,6 +27,7 @@ y = 1:5 println(y) @ +`j y` <>= y = 1:5