You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if num.doubleValue.isInfinite || num.doubleValue.isNaN {
325
315
throwNSError(domain: NSCocoaErrorDomain, code:NSCocoaError.PropertyListReadCorruptError.rawValue, userInfo:["NSDebugDescription":"Number cannot be infinity or NaN"])
326
316
}
327
317
328
318
// Cannot detect type information (e.g. bool) as there is no objCType property on NSNumber in Swift
XCTAssertEqual(str!,"{\"\(param.0)\":\(param.0._bridgeToObject().intValue)}","expect that serialized value should not contain trailing zero or decimal as they are whole numbers ")
691
-
}
692
-
}
693
-
694
-
func excecute_testWholeNumbersWithIntInput(){
695
-
foriin-10..<10{
696
-
letiStr="\(i)"
697
-
lettestDict=[iStr : i]
698
-
letstr=try?trySerialize(testDict.bridge())
699
-
XCTAssertEqual(str!,"{\"\(iStr)\":\(i)}","expect that serialized value should not contain trailing zero or decimal as they are whole numbers ")
0 commit comments