Skip to content

Commit 7821590

Browse files
authored
Fix missing enumerate
1 parent b022140 commit 7821590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/regex.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
m = match(r"(.) test (.+)", "a test 123")
141141
@test first(m) == "a"
142142
@test collect(m) == ["a", "123"]
143-
@test for (i, capture) in m
143+
@test for (i, capture) in enumerate(m)
144144
i == 1 && @test capture == "a"
145145
i == 2 && @test capture == "123"
146146
end

0 commit comments

Comments
 (0)