Skip to content

Commit 22e5194

Browse files
committed
Anchor is a better API name than Assertion
`lookahead` is moved to a free function, since it isn't an anchor like the others
1 parent c674db9 commit 22e5194

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/RegexTests/RegexDSLTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ class RegexDSLTests: XCTestCase {
188188
("aaaaabc", nil),
189189
captureType: Substring.self, ==)
190190
{
191-
Assertion.startOfLine
191+
Anchor.startOfLine
192192
"a".+
193193
"b"
194-
Assertion.endOfLine
194+
Anchor.endOfLine
195195
}
196196

197197
try _testDSLCaptures(
@@ -201,7 +201,7 @@ class RegexDSLTests: XCTestCase {
201201
captureType: Substring.self, ==)
202202
{
203203
"a".+
204-
Assertion.lookahead(CharacterClass.digit)
204+
lookahead(CharacterClass.digit)
205205
CharacterClass.word
206206
}
207207
}

0 commit comments

Comments
 (0)