Skip to content

Commit fab596e

Browse files
committed
test(wordcloud): add test case for scheme reproduction
1 parent 26b4a8c commit fab596e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ include("test_textprocessing.jl")
4141
mask=shape(squircle, 200, 150, color=0.15, rt=2.2), density=0.45, transparent=(1, 1, 1, 0)) # String & small mask
4242
@test_throws AssertionError wordcloud(["1"], [2,3], density=0.1) |> generate! # length unmatch
4343
@test_throws AssertionError wordcloud(String[], Int[], density=0.1) |> generate! # empty inputs
44+
wc2 = wordcloud("a new word cloud"; getscheme(wc)...)
45+
@test wc.mask === wc2.mask
46+
@test wc.svgmask === wc2.svgmask
47+
@test getscheme(wc) == getscheme(wc2)
48+
4449
##############no mask file
4550
wc = wordcloud(["test"], [1], maskcolor="green", outline=5)
4651
@test WordCloud.alpha(parsecolor(getbackgroundcolor(wc))) == 0

0 commit comments

Comments
 (0)