Skip to content

Commit

Permalink
Update test_ProtoStruct.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Oct 14, 2023
1 parent 2e8bbe8 commit dcfdd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_ProtoStruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ end
@test tpm.D == 1.2
@test tpm.E == "nope"
@test TestParametricMutation <: AbstractMutation
@test_throws ErrorException tpm2 = TestParametricMutation{Int, Float64}(D = 1.2, E = "yepp")
@test_throws MethodError tpm2 = TestParametricMutation{Int, Float64}(D = 1.2, E = "yepp")
tpm2 = @test_nowarn TestParametricMutation{Nothing, Float64}(D = 1.2, E = "yepp")
@test tpm2 isa TestParametricMutation
@test tpm2 isa TestParametricMutation{Nothing, Float64}
@test !(tpm2 isa TestParametricMutation{Nothing, Int})
@test_throws ErrorException tpm3 = TestParametricMutation{Int, Float64}(1, :no, nothing, 1.2, "yepp")
@test_throws MethodError tpm3 = TestParametricMutation{Int, Float64}(1, :no, nothing, 1.2, "yepp")
tpm3 = @test_nowarn TestParametricMutation{Nothing, Float64}(1, :no, nothing, 1.2, "yepp")
@test tpm3 isa TestParametricMutation
@test tpm3 isa TestParametricMutation{Nothing, Float64}
Expand Down

0 comments on commit dcfdd52

Please sign in to comment.