Skip to content

Commit

Permalink
add test case for latexify of complex symbolics
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Wessel committed Nov 27, 2024
1 parent 5774783 commit 91b5dd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/latexify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Dy = Differential(y)
@test_reference "latexify_refs/complex3.txt" latexify(1 - x + (1+2x)*im; imaginary_unit="\\mathbb{i}")
@test_reference "latexify_refs/complex4.txt" latexify(im * Symbolics.Term(sqrt, [2]))

@syms c
@test_reference "latexify_refs/complex5.txt" latexify((3+im/im)c)

@test_reference "latexify_refs/indices1.txt" latexify(h[10,10])
@test_reference "latexify_refs/indices2.txt" latexify(h[10,10], index=:bracket)

Expand Down
3 changes: 3 additions & 0 deletions test/latexify_refs/complex5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
\begin{equation}
4.0 c
\end{equation}

0 comments on commit 91b5dd9

Please sign in to comment.