251
252
253
254
255
256
257
258
259
260
261
262
263
|
[m unsignedIntValue] == 80 &&
[m unsignedLongValue] == 90 &&
[m unsignedLongLongValue] == 100 &&
[m floatValue] == 110 &&
[m doubleValue] == 120)
EXPECT_EXCEPTION(@"Catch -[setValue:forKey:] with nil key for scalar",
OFInvalidArgumentException, [m setValue: nil
forKey: @"intValue"])
[pool drain];
}
@end
|
|
|
251
252
253
254
255
256
257
258
259
260
261
262
263
|
[m unsignedIntValue] == 80 &&
[m unsignedLongValue] == 90 &&
[m unsignedLongLongValue] == 100 &&
[m floatValue] == 110 &&
[m doubleValue] == 120)
EXPECT_EXCEPTION(@"Catch -[setValue:forKey:] with nil key for scalar",
OFInvalidArgumentException, [m setValue: (id _Nonnull)nil
forKey: @"intValue"])
[pool drain];
}
@end
|