From 51b4771ef37e7c1e938c93a103c36e84c529297c Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Wed, 18 Mar 2020 15:13:07 +0100 Subject: [PATCH] Added tests for palette() and linestyles() --- test/runtests.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index b56b1c9..81b3eb1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -71,6 +71,11 @@ s = Gnuplot.data2string(u, v, z) " 2 6 8" , " 3 6 9" ]) +#----------------------------------------------------------------- +pal = palette(:deepsea) +@test pal == "set palette defined (0.0 '#2B004D', 0.25 '#4E0F99', 0.5 '#3C54D4', 0.75 '#48A9F8', 1.0 '#C5ECFF')\nset palette maxcol 5\n" +ls = linestyles(:deepsea) +@test ls == "set style line 1 lt 1 lc rgb '#2B004D\nset style line 2 lt 1 lc rgb '#4E0F99\nset style line 3 lt 1 lc rgb '#3C54D4\nset style line 4 lt 1 lc rgb '#48A9F8\nset style line 5 lt 1 lc rgb '#C5ECFF" #----------------------------------------------------------------- x = collect(1.:100);