@@ -183,7 +183,7 @@ class CustomRegexComponentTests: XCTestCase {
183183 // tests.
184184 func testCustomRegexComponents( ) throws {
185185 customTest (
186- Regex {
186+ Regex< Substring > {
187187 Numbler ( )
188188 Asciibbler ( )
189189 } ,
@@ -194,7 +194,7 @@ class CustomRegexComponentTests: XCTestCase {
194194 ( " t4 " , . match, nil ) )
195195
196196 customTest (
197- Regex {
197+ Regex< Substring > {
198198 OneOrMore { Numbler ( ) }
199199 } ,
200200 ( " ab123c " , . firstMatch, " 123 " ) ,
@@ -425,7 +425,7 @@ class CustomRegexComponentTests: XCTestCase {
425425 )
426426
427427 customTest (
428- Regex {
428+ Regex< CurrencyParser . Currency > {
429429 CurrencyParser ( )
430430 } ,
431431 ( " USD " , . usd, nil ) ,
@@ -437,7 +437,7 @@ class CustomRegexComponentTests: XCTestCase {
437437
438438 // No capture, two errors
439439 customTest (
440- Regex {
440+ Regex< Substring > {
441441 IntParser ( )
442442 " "
443443 IntParser ( )
@@ -449,7 +449,7 @@ class CustomRegexComponentTests: XCTestCase {
449449 )
450450
451451 customTest (
452- Regex {
452+ Regex< Substring > {
453453 CurrencyParser ( )
454454 IntParser ( )
455455 } ,
@@ -462,7 +462,7 @@ class CustomRegexComponentTests: XCTestCase {
462462 // One capture, two errors: One error is thrown from inside a capture,
463463 // while the other one is thrown from outside
464464 customTest (
465- Regex {
465+ Regex< ( Substring , CurrencyParser . Currency ) > {
466466 Capture { CurrencyParser ( ) }
467467 IntParser ( )
468468 } ,
@@ -473,7 +473,7 @@ class CustomRegexComponentTests: XCTestCase {
473473 )
474474
475475 customTest (
476- Regex {
476+ Regex< ( Substring , Int ) > {
477477 CurrencyParser ( )
478478 Capture { IntParser ( ) }
479479 } ,
@@ -485,7 +485,7 @@ class CustomRegexComponentTests: XCTestCase {
485485
486486 // One capture, two errors: Both errors are thrown from inside the capture
487487 customTest (
488- Regex {
488+ Regex< ( Substring , Substring ) > {
489489 Capture {
490490 CurrencyParser ( )
491491 IntParser ( )
@@ -499,7 +499,7 @@ class CustomRegexComponentTests: XCTestCase {
499499
500500 // Two captures, two errors: Different erros are thrown from inside captures
501501 customTest (
502- Regex {
502+ Regex< ( Substring , CurrencyParser . Currency , Int ) > {
503503 Capture ( CurrencyParser ( ) )
504504 Capture ( IntParser ( ) )
505505 } ,
0 commit comments