Skip to content

Commit ac04995

Browse files
committed
[Gardening] Remove DoubleWidth dead code from test
1 parent 539f2cd commit ac04995

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

test/Constraints/diagnostics_swift4.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,3 @@ class R<K: Hashable, V> {
5454
infix operator +=+ : AdditionPrecedence
5555
func +=+(_ lhs: Int, _ rhs: Int) -> Bool { return lhs == rhs }
5656
func +=+<T: BinaryInteger>(_ lhs: T, _ rhs: Int) -> Bool { return lhs == rhs }
57-
// FIXME: DoubleWidth is no longer part of the standard library
58-
// let _ = DoubleWidth<Int>(Int.min) - 1 +=+ Int.min // Ok

test/stdlib/FloatingPoint.swift.gyb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ FloatingPoint.test("BinaryFloatingPoint/genericIntegerConversion") {
112112
expectEqual(Float._convert(from: Int64.max).value, Float(Int64.max))
113113
expectEqual(Float._convert(from: Int64.min).value, Float(Int64.min))
114114

115-
// FIXME: DoubleWidth is no longer part of the standard library
116-
#if false
117-
expectEqual(Float._convert(from: DoubleWidth<UInt64>.max).value, .infinity)
118-
expectEqual(
119-
Float._convert(from: DoubleWidth<DoubleWidth<Int64>>.max).value, .infinity)
120-
expectEqual(
121-
Float._convert(from: DoubleWidth<DoubleWidth<Int64>>.min).value, -.infinity)
122-
#endif
123115
}
124116

125117
FloatingPoint.test("BinaryFloatingPoint/genericFloatingPointConversion") {

test/stdlib/Integers.swift.gyb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -914,18 +914,6 @@ tests.test("binaryLogarithm/generic") {
914914
expectEqual(
915915
(42 as MockBinaryInteger<UInt>)._binaryLogarithm(),
916916
(42 as UInt)._binaryLogarithm())
917-
// FIXME: DoubleWidth is no longer part of the standard library
918-
#if false
919-
expectEqual(
920-
(42 as MockBinaryInteger<DoubleWidth<Int>>)._binaryLogarithm(),
921-
(42 as DoubleWidth<Int>)._binaryLogarithm())
922-
expectEqual(
923-
(42 as MockBinaryInteger<DoubleWidth<UInt>>)._binaryLogarithm(),
924-
(42 as DoubleWidth<UInt>)._binaryLogarithm())
925-
expectEqual(
926-
(42 as MockBinaryInteger<DoubleWidth<DoubleWidth<Int>>>)._binaryLogarithm(),
927-
(42 as DoubleWidth<DoubleWidth<Int>>)._binaryLogarithm())
928-
#endif
929917
}
930918

931919
runAllTests()

0 commit comments

Comments
 (0)