File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -295,12 +295,13 @@ end
295295
296296 @testset "latexify as unitformat" begin
297297 y = rand(10) * u"m^-1"
298+ Latexify.set_default(labelformat = :slash)
298299 @test yguide(plot(y, ylabel = "hello", unitformat = latexify)) == "\$ hello\\ ;\\ left/\\ ;\\ mathrm{m}^{-1}\\ right.\$ "
299300
300301 uf = (l, u) -> l * " (" * latexify(u) * ")"
301302 @test yguide(plot(y, ylabel = "hello", unitformat = uf)) == "hello (\$\\ mathrm{m}^{-1}\$ )"
302303 Latexify.set_default(labelformat = :square)
303- @test yguide(plot(y, ylabel = "hello", unitformat = latexify)) == "\$ hello\\ ;\\ left[\\ ; \\ mathrm{m}^{-1}\\ right]\$ "
304+ @test yguide(plot(y, ylabel = "hello", unitformat = latexify)) == "\$ hello\\ ;\\ left[\\ mathrm{m}^{-1}\\ right]\$ "
304305 end
305306
306307 @testset "colorbar title" begin
You can’t perform that action at this time.
0 commit comments