Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed May 8, 2022
1 parent 1591a4f commit d601b16
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function render_texample(url)
@test true

end


@testset "MakieTeX.jl" begin

@testset "texample.net" begin
Expand Down Expand Up @@ -96,4 +98,23 @@ end
@test true
end
end

mkpath(joinpath(example_path, "aligns"))

@testset "aligns" begin
f = Figure(resolution = (200, 200))
lt = LTeX(f[1, 1], raw"Hello from Makie\TeX{}!")
teximg = lt.blockscene.plots[1]

for halign in (:left, :center, :right)
for valign in (:top, :center, :bottom)
@testset "$(halign), $(valign)" begin
@test_nowarn teximg.align = (halign, valign)
@test_nowarn save(joinpath(example_path, "aligns", "$(halign)_$(valign).png"), f; px_per_unit = 3)
@test_nowarn save(joinpath(example_path, "aligns", "$(halign)_$(valign).svg"), f; px_per_unit = 1)
@test_nowarn save(joinpath(example_path, "aligns", "$(halign)_$(valign).pdf"), f; px_per_unit = 0.75)
end
end
end
end
end

2 comments on commit d601b16

@asinghvi17
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/59908

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" d601b164f838a85f231a3724812150e53ec8acf1
git push origin v0.1.1

Please sign in to comment.