Skip to content

Commit 51d158b

Browse files
committed
[tests] Adjust tests for Linux
1 parent 391a9db commit 51d158b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/StringIndex.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ StringIndexTests.test("Scalar Align UTF-8 indices") {
202202
expectEqual(roundedIdx, roundedIdx3)
203203
}
204204

205+
#if _runtime(_ObjC)
205206
import Foundation
206207
StringIndexTests.test("String.Index(_:within) / Range<String.Index>(_:in:)") {
207208
guard #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) else {
@@ -246,5 +247,6 @@ StringIndexTests.test("String.Index(_:within) / Range<String.Index>(_:in:)") {
246247
}
247248
}
248249
}
250+
#endif // _runtime(_ObjC)
249251

250252
runAllTests()

0 commit comments

Comments
 (0)