mirror of https://github.com/mpastell/Weave.jl
Added test for tangle
parent
2afd25fd09
commit
6de5ba342c
|
@ -8,3 +8,10 @@ result = readstring(open("documents/chunk_options.md"))
|
||||||
ref = readstring(open("documents/chunk_options_ref.md"))
|
ref = readstring(open("documents/chunk_options_ref.md"))
|
||||||
@test result == ref
|
@test result == ref
|
||||||
cleanup && rm("documents/chunk_options.md")
|
cleanup && rm("documents/chunk_options.md")
|
||||||
|
|
||||||
|
|
||||||
|
tangle("documents/chunk_options.noweb", out_path = "documents/tangle")
|
||||||
|
result = readstring(open("documents/tangle/chunk_options.jl"))
|
||||||
|
ref = readstring(open("documents/tangle/chunk_options.jl.ref"))
|
||||||
|
@test ref == result
|
||||||
|
cleanup && rm("documents/tangle/chunk_options.jl")
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
y= [2, 5, 12]
|
||||||
|
|
||||||
|
x = [12, 10]
|
||||||
|
println(y)
|
||||||
|
println(x)
|
||||||
|
|
||||||
|
println("Results without code")
|
||||||
|
println(x)
|
||||||
|
|
||||||
|
y = 1:5
|
||||||
|
println(y)
|
||||||
|
|
||||||
|
a = "Don't print me"
|
||||||
|
println(a)
|
||||||
|
|
||||||
|
println("No markup for results.")
|
||||||
|
|
||||||
|
println(collect(0:10:1000))
|
||||||
|
|
||||||
|
println(collect(0:10:1000))
|
||||||
|
|
||||||
|
println(collect(0:10:1000))
|
Loading…
Reference in New Issue