Skip to content

Commit

Permalink
make tests REPL-executable
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Jun 5, 2024
1 parent 96ae70c commit 08da231
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/svg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ using CairoMakie.Colors
bvsvg = SVGDocument(read(Base.download("https://upload.wikimedia.org/wikipedia/commons/6/6b/Bitmap_VS_SVG.svg"), String));
wsvg = SVGDocument(read(Base.download("https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg"), String));

@test_nowarn CachedSVG(svg)
csvg = CachedSVG(svg)
@test_nowarn CachedSVG(bvsvg)
cbvsvg = CachedSVG(bvsvg)
@test_nowarn CachedSVG(wsvg)
cwsvg = CachedSVG(wsvg)
@test_nowarn CachedSVG(svg);
csvg = CachedSVG(svg);
@test_nowarn CachedSVG(bvsvg);
cbvsvg = CachedSVG(bvsvg);
@test_nowarn CachedSVG(wsvg);
cwsvg = CachedSVG(wsvg);

f, a, p = scatter(Point2f(1); marker = csvg, markersize = 60, axis = (; limits = (0,2,0,2)))
p.color = :red
Expand Down
2 changes: 1 addition & 1 deletion test/tex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function render_texample(url)

filename = splitdir(splitext(url)[1])[2]

save_test(joinpath("texample", filename), fig)
save_test(joinpath(@__DIR__, "texample", filename), fig)

@test true

Expand Down

0 comments on commit 08da231

Please sign in to comment.