Skip to content

Commit 5d76b49

Browse files
authored
Merge pull request #3542 from apple/stdlib-reenable-string-test
stdlib: re-enable validation-test/stdlib/String.swift
2 parents ea432ea + 1d3f595 commit 5d76b49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

validation-test/stdlib/String.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: rdar27381049
43

54
// XFAIL: interpret
65

@@ -1127,18 +1126,18 @@ StringTests.test("indexConversion")
11271126
.skip(.nativeRuntime("Foundation dependency"))
11281127
.code {
11291128
#if _runtime(_ObjC)
1130-
let re : RegularExpression
1129+
let re : NSRegularExpression
11311130
do {
1132-
re = try RegularExpression(
1133-
pattern: "([^ ]+)er", options: RegularExpression.Options())
1131+
re = try NSRegularExpression(
1132+
pattern: "([^ ]+)er", options: NSRegularExpression.Options())
11341133
} catch { fatalError("couldn't build regexp: \(error)") }
11351134

11361135
let s = "go further into the larder to barter."
11371136

11381137
var matches: [String] = []
11391138

11401139
re.enumerateMatches(
1141-
in: s, options: RegularExpression.MatchingOptions(), range: NSRange(0..<s.utf16.count)
1140+
in: s, options: NSRegularExpression.MatchingOptions(), range: NSRange(0..<s.utf16.count)
11421141
) {
11431142
result, flags, stop
11441143
in

0 commit comments

Comments
 (0)