From 70513c7d0c2fde0136890fda2e14683a88ce722d Mon Sep 17 00:00:00 2001 From: Herman Sletmoen Date: Fri, 13 Dec 2024 15:19:37 +0100 Subject: [PATCH] Add tests --- test/latexify.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/latexify.jl b/test/latexify.jl index 5d80cab52..17a47afe9 100644 --- a/test/latexify.jl +++ b/test/latexify.jl @@ -62,3 +62,7 @@ Dy = Differential(y) @test_reference "latexify_refs/indices2.txt" latexify(h[10,10], index=:bracket) @test !occursin("identity", latexify(Num(π))) # issue #1254 + +@variables t +@test String(latexify(only(@variables sys₊x123(t)[1:3])[1]; env=:raw)) == raw"\mathtt{sys.x123}\left( t \right)_{1}" # x without subscript +@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