Skip to content

Commit

Permalink
Add tests for latexequation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Korsbo committed Jul 3, 2019
1 parent cb3ca42 commit 4829c35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions test/latexequation_test.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

@test latexify("x/y"; env=:eq) ==
raw"\begin{equation}
\frac{x}{y}
\end{equation}
"

@test latexify("x = a^x/b"; env=:eq, starred=true) ==
raw"\begin{equation*}
x = \frac{a^{x}}{b}
\end{equation*}
"
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ using Test
@testset "latexraw tests" begin include("latexraw_test.jl") end
@testset "latexalign tests" begin include("latexalign_test.jl") end
@testset "latexarray tests" begin include("latexarray_test.jl") end
@testset "latexequation tests" begin include("latexequation_test.jl") end
@testset "latexinline tests" begin include("latexinline_test.jl") end
@testset "latextabular tests" begin include("latextabular_test.jl") end
@testset "mdtable tests" begin include("mdtable_test.jl") end
@testset "chemical_arrows test" begin include("chemical_arrows_test.jl") end
@testset "DataFrame Plugin" begin include("plugins/DataFrames.jl") end
@testset "unocode2latex" begin include("unicode2latex.jl") end
@testset "cdot test" begin include("cdot_test.jl") end
@testset "cdot test" begin include("cdot_test.jl") end

0 comments on commit 4829c35

Please sign in to comment.