Skip to content

Commit 4d1b944

Browse files
committed
Just skip tests on unsupported versions
1 parent 5251750 commit 4d1b944

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/Casting/TypeOf_ExtendedExistential.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ CastsTests.test("type(of:) should look through extended existentials (none)") {
4343
if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) {
4444
let x = genericErase(c)
4545
expectEqual("C<Int>", "\(type(of:x))")
46-
} else {
47-
expectEqual(0, 1)
4846
}
4947
}
5048

@@ -63,8 +61,6 @@ CastsTests.test("type(of:) should look through extended existentials (class)") {
6361
if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) {
6462
let x = genericErase(c)
6563
expectEqual("C<Int>", "\(type(of:x))")
66-
} else {
67-
expectEqual(0, 1)
6864
}
6965
}
7066

@@ -76,8 +72,6 @@ CastsTests.test("type(of:) should look through extended existentials (metatype)"
7672
if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) {
7773
let x = genericErase(t)
7874
expectEqual("C<Int>.Type", "\(type(of:x))")
79-
} else {
80-
expectEqual(0, 1)
8175
}
8276
}
8377

0 commit comments

Comments
 (0)