Skip to content

Commit 82d9eac

Browse files
committed
Add tests
1 parent 4e3f233 commit 82d9eac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/latexify.jl

+4
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ Dy = Differential(y)
6262
@test_reference "latexify_refs/indices2.txt" latexify(h[10,10], index=:bracket)
6363

6464
@test !occursin("identity", latexify(Num(π))) # issue #1254
65+
66+
@variables t
67+
@test String(latexify(only(@variables sys₊x123(t)[1:3])[1]; env=:raw)) == raw"\mathtt{sys.x123}\left( t \right)_{1}" # x without subscript
68+
@test String(latexify(only(@variables sys₊x123(t)[1:3] [latex = raw"x_{123}"])[1]; env=:raw)) == raw"\mathtt{sys.}x_{{123}}\left( t \right)_{1}" # x with subscript

0 commit comments

Comments
 (0)