Skip to content

Commit ca44608

Browse files
authored
explain regex
1 parent 61d1a30 commit ca44608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/differentials/composite.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ end
219219

220220
@testset "show" begin
221221
@test repr(Composite{Foo}(x=1,)) == "Composite{Foo}(x = 1,)"
222+
# check for exact regex match not occurence( `^...$`)
223+
# and allowing optional whitespace (`\s?`)
222224
@test occursin(
223225
r"^Composite{Tuple{Int64,\s?Int64}}\(1,\s?2\)$",
224226
repr(Composite{Tuple{Int64,Int64}}(1, 2)),

0 commit comments

Comments
 (0)