Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmaccode authored May 12, 2024
1 parent 9e164d2 commit da03805
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,18 @@ using Gattino
@test "grid" in lays
end
end
@testset "colors" begin
randco = Gattino.randcolor()
@test randco[1] == "#"
@test length(randco) == 7
grad = make_gradient((255, 0, 0), 10, 5, 5, 0)
@test length(grad) == 10
@test grad[2] == "rgb(260, 5, 0)"
end
@testset "contexts" verbose = true begin

newcon = context()
@test typeof(newcon) <: Gattino.AbstractContext

end
@testset "context plotting" verbose = true begin

Expand Down

0 comments on commit da03805

Please sign in to comment.