Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 8fc3e5c

Browse files
committed
Fix an issue with default type printing
1 parent 020bf5f commit 8fc3e5c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/did.jl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ end
9696
@test sprint(show, sp) == "DIDSpec{DefaultDID}: name"
9797
@test sprintcompact(sp) == "DIDSpec{DefaultDID}: name"
9898

99-
sp = DIDSpec("name", Dict(:d=>TestDID, :tr=>TR, :pr=>PR), Dict(:a=>1, :b=>2))
100-
@test sprint(show, sp) == """
101-
DIDSpec{TestDID}: name
102-
TestTreatment(:t, 0)
103-
TestParallel{ParallelCondition,ParallelStrength}(0)"""
104-
@test sprintcompact(sp) == "DIDSpec{TestDID}: name"
105-
10699
sp = DIDSpec("", Dict(:d=>TestDID, :tr=>dynamic(:time,-1), :pr=>nevertreated(-1)),
107100
Dict{Symbol,Any}())
108101
@test sprint(show, sp) == """
@@ -117,11 +110,11 @@ end
117110
Dynamic{S}(-1)"""
118111
@test sprintcompact(sp) == "DIDSpec{TestDID}"
119112

120-
sp = DIDSpec("", Dict(:d=>TestDID, :pr=>nevertreated(-1)), Dict{Symbol,Any}())
113+
sp = DIDSpec("name", Dict(:d=>TestDID, :pr=>nevertreated(-1)), Dict{Symbol,Any}())
121114
@test sprint(show, sp) == """
122-
DIDSpec{TestDID}:
115+
DIDSpec{TestDID}: name
123116
NeverTreated{U,P}([-1])"""
124-
@test sprintcompact(sp) == "DIDSpec{TestDID}"
117+
@test sprintcompact(sp) == "DIDSpec{TestDID}: name"
125118
end
126119
end
127120

0 commit comments

Comments
 (0)