224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
[[a objectAtIndex: i++] isEqual: @""] &&
[[a objectAtIndex: i++] isEqual: @"baz"] &&
[[a objectAtIndex: i++] isEqual: @""] &&
[[a objectAtIndex: i++] isEqual: @""])
TEST(@"-[decimalValue]",
[@"1234" decimalValue] == 1234 &&
[@"-500" decimalValue] == -500 &&
[@"" decimalValue] == 0)
TEST(@"-[hexadecimalValue]",
[@"123f" hexadecimalValue] == 0x123f &&
[@"0xABcd" hexadecimalValue] == 0xABCD &&
[@"xbCDE" hexadecimalValue] == 0xBCDE &&
|
>
|
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
[[a objectAtIndex: i++] isEqual: @""] &&
[[a objectAtIndex: i++] isEqual: @"baz"] &&
[[a objectAtIndex: i++] isEqual: @""] &&
[[a objectAtIndex: i++] isEqual: @""])
TEST(@"-[decimalValue]",
[@"1234" decimalValue] == 1234 &&
[@"+123" decimalValue] == 123 &&
[@"-500" decimalValue] == -500 &&
[@"" decimalValue] == 0)
TEST(@"-[hexadecimalValue]",
[@"123f" hexadecimalValue] == 0x123f &&
[@"0xABcd" hexadecimalValue] == 0xABCD &&
[@"xbCDE" hexadecimalValue] == 0xBCDE &&
|