Skip to content

Commit

Permalink
simple incomplete initialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvd committed Oct 20, 2021
1 parent a1ba849 commit 8014fcd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_restack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ end

Base.getproperty(::CustomizedProperties, n::Symbol) = n

struct IncompleteInitialization{A,B}
a::A
b::B
IncompleteInitialization{A,B}(a::A) where {A,B}= new{A,B}(a)
end

function testlabel(x)
n = 50
s = repr(x)
Expand Down Expand Up @@ -56,6 +62,7 @@ end
),
CustomizedProperties(1, 2, 3),
CustomizedProperties(1, 2, ABC(1, 2, CustomizedProperties(1, 2, 3))),
IncompleteInitialization{Int,String}(2)
]
@test restack(x) === x
end
Expand Down

0 comments on commit 8014fcd

Please sign in to comment.