We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4050b2a commit 662ca50Copy full SHA for 662ca50
PlotThemes/test/Project.toml
@@ -1,2 +1,3 @@
1
[deps]
2
+PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
3
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
PlotThemes/test/runtests.jl
@@ -1,4 +1,15 @@
using PlotThemes
using Test, PlotUtils
4
-@test in(:sand, keys(PlotThemes._themes))
+@testset "basics" begin
5
+ @test :sand ∈ keys(PlotThemes._themes)
6
+
7
+ palette = theme_palette(:wong)
8
+ @test palette isa ColorPalette
9
10
+ thm = PlotTheme(PlotThemes._dark; palette)
11
+ @test thm isa PlotTheme
12
13
+ add_theme(:custom, thm)
14
+ @test theme_palette(:custom) == palette
15
+end
0 commit comments