Skip to content

Commit ff8df72

Browse files
Add test
1 parent 580da47 commit ff8df72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/test_vlplot_macro.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,19 @@ using Test
104104
}
105105
"""
106106

107+
@testset "Test using outside variables in vlplot spec" begin
108+
color_bar1 = "green"
109+
@test @vlplot(
110+
x = :x,
111+
y = :y,
112+
mark = {type = :circle},
113+
color = {field = :z, type = "nominal", scale = {range = [color_bar1, "blue"]}}
114+
) == @vlplot(
115+
x = :x,
116+
y = :y,
117+
mark = {type = :circle},
118+
color = {field = :z, type = "nominal", scale = {range = ["green", "blue"]}}
119+
)
120+
end
121+
107122
end

0 commit comments

Comments
 (0)