Skip to content

Commit

Permalink
Added test to reconstruct an undef field
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed Sep 30, 2021
1 parent 445548a commit 6f959e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ end

struct S end

struct Bar
a
Bar() = new()
end

module A
using DataFrames, BSON
d = DataFrame(a = 1:10, b = rand(10))
Expand All @@ -39,6 +44,9 @@ end
@test roundtrip_equal("b")
@test roundtrip_equal([1,"b"])
@test roundtrip_equal(Tuple)
@test roundtrip_equal(Tuple{Int, Float64})
@test roundtrip_equal(Vararg{Any})
@test roundtrip_equal(Bar()) # test reconstructing #undef field
end

@testset "Complex Types" begin
Expand Down

0 comments on commit 6f959e6

Please sign in to comment.