2016-11-03 13:13:50 +01:00
|
|
|
using Weave
|
2018-07-23 12:37:25 +02:00
|
|
|
using Test
|
2014-12-09 10:34:26 +01:00
|
|
|
|
2016-04-11 19:34:36 +02:00
|
|
|
cleanup = true
|
|
|
|
|
2017-03-13 22:14:25 +01:00
|
|
|
VER = "$(VERSION.major).$(VERSION.minor)"
|
|
|
|
|
2018-07-26 19:32:10 +02:00
|
|
|
weave("documents/chunk_options.noweb")
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/chunk_options.md", String)
|
2018-08-17 09:28:12 +02:00
|
|
|
ref = read("documents/chunk_options_ref.md", String)
|
2014-12-09 10:34:26 +01:00
|
|
|
@test result == ref
|
2016-04-11 19:34:36 +02:00
|
|
|
cleanup && rm("documents/chunk_options.md")
|
2016-12-13 21:18:54 +01:00
|
|
|
|
|
|
|
tangle("documents/chunk_options.noweb", out_path = "documents/tangle")
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/tangle/chunk_options.jl", String)
|
|
|
|
ref = read("documents/tangle/chunk_options.jl.ref", String)
|
2016-12-13 21:18:54 +01:00
|
|
|
@test ref == result
|
|
|
|
cleanup && rm("documents/tangle/chunk_options.jl")
|