Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 5e17b3a

Browse files
committed
updated unit tests for Linux
1 parent 13ee1c9 commit 5e17b3a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/UnitTests/RegularExpressionTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class RegularExpressionTests: XCTestCase {
2727
guard let match = regex.match(string, options: [])
2828
else { XCTFail("Could not find match"); return }
2929

30-
let stringRange = NSRange(match.range)
30+
let stringRange = NSRange(Range(match.range))
3131

3232
#if os(Linux)
3333
let matchString = NSString(string: string).substringWithRange(stringRange)
@@ -49,7 +49,7 @@ final class RegularExpressionTests: XCTestCase {
4949
guard let match = regex.match(string, options: [])
5050
else { XCTFail("Could not find match"); return }
5151

52-
let stringRange = NSRange(match.range)
52+
let stringRange = NSRange(Range(match.range))
5353

5454
#if os(Linux)
5555
let matchString = NSString(string: string).substringWithRange(stringRange)
@@ -70,7 +70,7 @@ final class RegularExpressionTests: XCTestCase {
7070
guard let match = regex.match(string, options: [])
7171
else { XCTFail("Could not find match"); return }
7272

73-
let stringRange = NSRange(match.range)
73+
let stringRange = NSRange(Range(match.range))
7474

7575
#if os(Linux)
7676
let matchString = NSString(string: string).substringWithRange(stringRange)
@@ -91,7 +91,7 @@ final class RegularExpressionTests: XCTestCase {
9191
guard let match = regex.match(string, options: [])
9292
else { XCTFail("Could not find match"); return }
9393

94-
let stringRange = NSRange(match.range)
94+
let stringRange = NSRange(Range(match.range))
9595

9696
#if os(Linux)
9797
let matchString = NSString(string: string).substringWithRange(stringRange)

0 commit comments

Comments
 (0)