Skip to content

Commit

Permalink
Add Animation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Syver Døving Agdestein committed Oct 18, 2023
1 parent d605006 commit f21f065
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_animations.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f21f065

Please sign in to comment.