Skip to content

Commit 7b68733

Browse files
committed
Test UnicodePlots
1 parent 1f5d5a0 commit 7b68733

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Printf = "1.6"
6464
PyPlot = "2"
6565
PythonPlot = "1"
6666
StaticArrays = "1"
67+
Term = "2.0.8"
6768
Triangulate = "2, 3"
6869
UnicodePlots = "3"
6970
VTKView = "0.1,0.2"
@@ -75,8 +76,9 @@ ExtendableGrids = "cfc395e8-590f-11e8-1f13-43a2532b2fa8"
7576
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7677
PlutoVista = "646e1f28-b900-46d7-9d87-d554eb38a413"
7778
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
79+
Term = "22787eb5-b846-44ae-b979-8e399b8463ab"
7880
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7981
Triangulate = "f7e6ffb2-c36d-4f8f-a77e-16e897189344"
8082

8183
[targets]
82-
test = ["CairoMakie", "ExtendableGrids", "Pkg", "PlutoVista", "PyPlot", "Test", "Triangulate"]
84+
test = ["CairoMakie", "ExtendableGrids", "Pkg", "PlutoVista", "PyPlot", "Term", "Test", "Triangulate", "UnicodePlots"]

examples/plotting.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ function plotting_multiscene!(p)
327327
)
328328
vectorplot!(p[1, 4], vec2d()...; title = "2D quiver")
329329
GridVisualize.streamplot!(p[2, 4], vec2d()...; title = "2D stream")
330-
return reveal(p)
330+
reveal(p)
331+
return true
331332
end
332333

333334
function plotting_multiscene(; Plotter = default_plotter(), resolution = (1000, 500))

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Test, ExtendableGrids, GridVisualize, Pkg, LinearAlgebra
22

3-
import CairoMakie, PyPlot, PlutoVista
3+
import CairoMakie, PyPlot, PlutoVista, UnicodePlots, Term
44

55
CairoMakie.activate!(; type = "svg", visible = false)
66

@@ -21,10 +21,10 @@ for Plotter in [CairoMakie]
2121
end
2222

2323
# Some Plotters cannot perform the `makeplots` run, only try a `multiscene`
24-
for Plotter in [PyPlot, PlutoVista]
24+
for Plotter in [PyPlot, PlutoVista, UnicodePlots]
2525
@eval begin
2626
@testset "plotting_multiscene - $(nameof($Plotter))" begin
27-
@test plotting_multiscene(Plotter = $Plotter) !== nothing
27+
@test plotting_multiscene(Plotter = $Plotter)
2828
end
2929
end
3030
end

0 commit comments

Comments
 (0)