Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
gustaphe committed Aug 9, 2024
1 parent 4b7990b commit 9e31431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added test/visualreferences/ket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/visualregression_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ end
latexify_VRT("simpleequation.png", :(x^2-2y_a*exp(3)[1,2,3]); cdot=false)
latexify_VRT("table.png", hcat([1,2,3], [4,5,6], [7;8;9]); env=:table, head=["a" "b" "c"])

struct Ket{T}
x::T
end
@latexrecipe function f(x::Ket)
return Expr(:latexifymerge, "\\left|", x.x, "\\right>")
end
latexify_VRT("ket.png", :($(Ket(:a)) + $(Ket(:b))))

0 comments on commit 9e31431

Please sign in to comment.