Skip to content

Commit 531c624

Browse files
committed
fix composite repr test on julia-nightly
1 parent 5788ab7 commit 531c624

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/differentials/composite.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end
9999

100100
@testset "Tuples" begin
101101
@test ==(
102-
typeof(Composite{Tuple{}}() + Composite{Tuple{}}()),
102+
typeof(Composite{Tuple{}}() + Composite{Tuple{}}()),
103103
Composite{Tuple{}, Tuple{}}
104104
)
105105
@test (
@@ -219,7 +219,10 @@ end
219219

220220
@testset "show" begin
221221
@test repr(Composite{Foo}(x=1,)) == "Composite{Foo}(x = 1,)"
222-
@test repr(Composite{Tuple{Int,Int}}(1, 2)) == "Composite{Tuple{Int64,Int64}}(1, 2)"
222+
@test occursin(
223+
r"^Composite{Tuple{Int64,\s?Int64}}\(1,\s?2\)$",
224+
repr(Composite{Tuple{Int64,Int64}}(1, 2)),
225+
)
223226
end
224227

225228
@testset "internals" begin

0 commit comments

Comments
 (0)