46
47
48
49
50
51
52
53
54
55
56
|
TEST(@"-[numberByXORing:]",
[[num numberByXORingWithNumber: [OFNumber numberWithInt: 123456831]]
intValue] == 42)
TEST(@"-[numberByShiftingRightBy:]",
[[num numberByShiftingRightWithNumber: [OFNumber numberWithInt: 8]]
intValue] == 482253)
[pool drain];
}
@end
|
>
>
>
>
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
TEST(@"-[numberByXORing:]",
[[num numberByXORingWithNumber: [OFNumber numberWithInt: 123456831]]
intValue] == 42)
TEST(@"-[numberByShiftingRightBy:]",
[[num numberByShiftingRightWithNumber: [OFNumber numberWithInt: 8]]
intValue] == 482253)
TEST(@"-[remainderOfDivisionWithNumber:]",
[[num remainderOfDivisionWithNumber: [OFNumber numberWithInt: 11]]
intValue] == 5)
[pool drain];
}
@end
|