File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -658,16 +658,12 @@ func testNSNumberBridgeFromUInt() {
658
658
let uint = ( number!) as? UInt
659
659
expectEqual ( UInt ( exactly: interestingValue) , uint)
660
660
661
- // these are disabled because of https://bugs.swift.org/browse/SR-4634
662
- if uint! != UInt ( UInt32 . max) && uint! != UInt ( UInt32 . max - 1 ) {
663
- let float = ( number!) as? Float
664
- let expectedFloat = Float ( uint!)
665
- testFloat ( expectedFloat, float)
666
- }
667
-
668
-
661
+ let float = ( number!) as? Float
662
+ let expectedFloat = Float ( exactly: uint!)
663
+ testFloat ( expectedFloat, float)
664
+
669
665
let double = ( number!) as? Double
670
- let expectedDouble = Double ( uint!)
666
+ let expectedDouble = Double ( exactly : uint!)
671
667
testDouble ( expectedDouble, double)
672
668
}
673
669
let bridged = interestingValue as NSNumber
You can’t perform that action at this time.
0 commit comments