mirror of https://github.com/mpastell/Weave.jl
Add test for term mode chunks
parent
4bc881378b
commit
3d30e4fcfc
|
@ -57,3 +57,10 @@ result = @compat readstring(open("documents/chunk_func.md"))
|
|||
ref = @compat readstring(open("documents/chunk_func_ref.md"))
|
||||
@test result == ref
|
||||
cleanup && rm("documents/chunk_func.md")
|
||||
|
||||
#Test term=true
|
||||
weave("documents/test_term.jmd", doctype = "pandoc")
|
||||
result = @compat readstring(open("documents/test_term.md"))
|
||||
ref = @compat readstring(open("documents/test_term_ref.md"))
|
||||
@test result == ref
|
||||
cleanup && rm("documents/test_term.md")
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
```julia
|
||||
p = Array(linspace(0, 2π))
|
||||
```
|
||||
|
||||
```julia;term=true
|
||||
p = Array(linspace(0, 2π))
|
||||
```
|
||||
|
||||
```julia;term=true
|
||||
p = Array(linspace(0, 2π));
|
||||
```
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
~~~~{.julia}
|
||||
p = Array(linspace(0, 2π))
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~{.julia}
|
||||
julia> p = Array(linspace(0, 2π))
|
||||
50-element Array{Float64,1}:
|
||||
0.0
|
||||
0.128228
|
||||
0.256457
|
||||
0.384685
|
||||
0.512913
|
||||
0.641141
|
||||
0.76937
|
||||
0.897598
|
||||
1.02583
|
||||
1.15405
|
||||
1.28228
|
||||
1.41051
|
||||
1.53874
|
||||
1.66697
|
||||
1.7952
|
||||
1.92342
|
||||
2.05165
|
||||
2.17988
|
||||
2.30811
|
||||
2.43634
|
||||
2.56457
|
||||
2.69279
|
||||
2.82102
|
||||
2.94925
|
||||
3.07748
|
||||
3.20571
|
||||
3.33394
|
||||
3.46216
|
||||
3.59039
|
||||
3.71862
|
||||
3.84685
|
||||
3.97508
|
||||
4.1033
|
||||
4.23153
|
||||
4.35976
|
||||
4.48799
|
||||
4.61622
|
||||
4.74445
|
||||
4.87267
|
||||
5.0009
|
||||
5.12913
|
||||
5.25736
|
||||
5.38559
|
||||
5.51382
|
||||
5.64204
|
||||
5.77027
|
||||
5.8985
|
||||
6.02673
|
||||
6.15496
|
||||
6.28319
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~{.julia}
|
||||
julia> p = Array(linspace(0, 2π));
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
Loading…
Reference in New Issue