@@ -183,7 +183,7 @@ class CustomRegexComponentTests: XCTestCase {
183
183
// tests.
184
184
func testCustomRegexComponents( ) throws {
185
185
customTest (
186
- Regex {
186
+ Regex< Substring > {
187
187
Numbler ( )
188
188
Asciibbler ( )
189
189
} ,
@@ -194,7 +194,7 @@ class CustomRegexComponentTests: XCTestCase {
194
194
( " t4 " , . match, nil ) )
195
195
196
196
customTest (
197
- Regex {
197
+ Regex< Substring > {
198
198
OneOrMore { Numbler ( ) }
199
199
} ,
200
200
( " ab123c " , . firstMatch, " 123 " ) ,
@@ -425,7 +425,7 @@ class CustomRegexComponentTests: XCTestCase {
425
425
)
426
426
427
427
customTest (
428
- Regex {
428
+ Regex< CurrencyParser . Currency > {
429
429
CurrencyParser ( )
430
430
} ,
431
431
( " USD " , . usd, nil ) ,
@@ -437,7 +437,7 @@ class CustomRegexComponentTests: XCTestCase {
437
437
438
438
// No capture, two errors
439
439
customTest (
440
- Regex {
440
+ Regex< Substring > {
441
441
IntParser ( )
442
442
" "
443
443
IntParser ( )
@@ -449,7 +449,7 @@ class CustomRegexComponentTests: XCTestCase {
449
449
)
450
450
451
451
customTest (
452
- Regex {
452
+ Regex< Substring > {
453
453
CurrencyParser ( )
454
454
IntParser ( )
455
455
} ,
@@ -462,7 +462,7 @@ class CustomRegexComponentTests: XCTestCase {
462
462
// One capture, two errors: One error is thrown from inside a capture,
463
463
// while the other one is thrown from outside
464
464
customTest (
465
- Regex {
465
+ Regex< ( Substring , CurrencyParser . Currency ) > {
466
466
Capture { CurrencyParser ( ) }
467
467
IntParser ( )
468
468
} ,
@@ -473,7 +473,7 @@ class CustomRegexComponentTests: XCTestCase {
473
473
)
474
474
475
475
customTest (
476
- Regex {
476
+ Regex< ( Substring , Int ) > {
477
477
CurrencyParser ( )
478
478
Capture { IntParser ( ) }
479
479
} ,
@@ -485,7 +485,7 @@ class CustomRegexComponentTests: XCTestCase {
485
485
486
486
// One capture, two errors: Both errors are thrown from inside the capture
487
487
customTest (
488
- Regex {
488
+ Regex< ( Substring , Substring ) > {
489
489
Capture {
490
490
CurrencyParser ( )
491
491
IntParser ( )
@@ -499,7 +499,7 @@ class CustomRegexComponentTests: XCTestCase {
499
499
500
500
// Two captures, two errors: Different erros are thrown from inside captures
501
501
customTest (
502
- Regex {
502
+ Regex< ( Substring , CurrencyParser . Currency , Int ) > {
503
503
Capture ( CurrencyParser ( ) )
504
504
Capture ( IntParser ( ) )
505
505
} ,
0 commit comments