mirror of https://github.com/mpastell/Weave.jl
Fixed tests
parent
5fb5a7ab3f
commit
84dbf05b3e
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
~~~~{.julia}
|
||||
using DataFrames
|
||||
df = DataFrame(letters = 'a':'z', numbers = 1:26)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
\begin{juliacode}
|
||||
using DataFrames
|
||||
df = DataFrame(letters = 'a':'z', numbers = 1:26)
|
||||
|
@ -111,5 +110,6 @@ m = Base.Markdown.parse("**Some Markdown**")
|
|||
m
|
||||
\end{juliacode}
|
||||
|
||||
|
||||
\textbf{Some Markdown}
|
||||
|
||||
|
|
|
@ -19,6 +19,9 @@ f_check = "<div><h1>Test chunk</h1><p>Test rendering <span>\$\alpha\$</span></p>
|
|||
f = Weave.format_chunk(dchunk, docformat.formatdict, docformat)
|
||||
@test f_check == f
|
||||
|
||||
parsed = Weave.read_doc("documents/chunk_options.noweb")
|
||||
doc = Weave.run(parsed, doctype = "md2html")
|
||||
|
||||
c_check = "<pre class='hljl'>\n<span class='hljl-n'>x</span><span class='hljl-t'> </span><span class='hljl-oB'>=</span><span class='hljl-t'> </span><span class='hljl-p'>[</span><span class='hljl-ni'>12</span><span class='hljl-p'>,</span><span class='hljl-t'> </span><span class='hljl-ni'>10</span><span class='hljl-p'>]</span><span class='hljl-t'>\n</span><span class='hljl-nf'>println</span><span class='hljl-p'>(</span><span class='hljl-n'>y</span><span class='hljl-p'>)</span>\n</pre>\n"
|
||||
c = Weave.format_code(doc.chunks[4].content, doc.format)
|
||||
@test c_check == c
|
||||
|
|
Loading…
Reference in New Issue