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 57db597 commit b3f29a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_ProtoStruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ test_me_kw = @test_nowarn TestMe(A=1, B="2", C=complex(1), D=5)
@test SimpleTestMe(1) isa SimpleTestMe
@test test_me isa TestMe
@test_throws UndefKeywordError TestMe(A=1)
end # testset
end

@testset "Access" begin
@test test_me.A == 1
@test test_me.B == "2"
@test test_me.C == complex(1)
end # testset
end

@testset "Properties" begin
@test propertynames( test_me ) == (:A, :B, :C, :D)
end # testset
end

@proto struct TestMe{T, V <: Real}
A::Int
Expand All @@ -42,7 +42,7 @@ test_me_kw2 = @test_nowarn TestMe(A=1, B="2", C=complex(1), D=5, E="tadaa")

@testset "Redefinition" begin
@test length(methods(TestMe)) == 3
end # testset
end

@proto struct TestKw{T, V <: Real}
A::Int = 1
Expand Down

0 comments on commit b3f29a3

Please sign in to comment.