Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Apr 14, 2021
1 parent 2242ec0 commit 618dfff
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ end
struct EmptyStruct
end

struct SomeFoo
id::Int
val::Union{Nothing, Some{Float64}}
end

@testset "StructTypes" begin

@test StructTypes.StructType(Union{Int, Missing}) == StructTypes.Struct()
Expand Down Expand Up @@ -125,11 +120,7 @@ v = v"1.2.3"
@test StructTypes.StructType(v) == StructTypes.StringType()

# Some wrapper
StructTypes.StructType(::Type{SomeFoo}) = StructTypes.Struct()
x = SomeFoo(123, nothing)
@test JSON3.read(JSON3.write(x), SomeFoo) == x
x = SomeFoo(123, Some(3.14))
@test JSON3.read(JSON3.write(x), SomeFoo) == x
@test StructTypes.StructType(Some(1)) == StructTypes.CustomStruct()

end

Expand Down

0 comments on commit 618dfff

Please sign in to comment.