From f21f06550f115de78505b5491ec66e63608a8465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Syver=20D=C3=B8ving=20Agdestein?= Date: Wed, 18 Oct 2023 11:53:12 +0200 Subject: [PATCH] Add Animation tests --- test/test_animations.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_animations.jl b/test/test_animations.jl index 4ad7fe2e6..562e7ef22 100644 --- a/test/test_animations.jl +++ b/test/test_animations.jl @@ -1,3 +1,11 @@ +@testset "Animation constructors" begin + @test Animation() isa Animation + @test Animation("dir") isa Animation + @test Animation("dir", String[]) isa Animation + anim = Animation("nonexisting_dir") + @test_throws SystemError frame(anim, plot([1, 2, 3])) +end + @testset "Empty anim" begin anim = @animate for i in [] end