36
37
38
39
40
41
42
43
44
|
TEST(@"-[decrease]",
[[num decrease] isEqual: [OFNumber numberWithInt32: 123456788]])
TEST(@"-[divideBy:]",
[[num divideBy: [OFNumber numberWithInt: 2]] asInt] == 61728394)
[pool drain];
}
|
>
>
>
>
>
>
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
TEST(@"-[decrease]",
[[num decrease] isEqual: [OFNumber numberWithInt32: 123456788]])
TEST(@"-[divideBy:]",
[[num divideBy: [OFNumber numberWithInt: 2]] asInt] == 61728394)
TEST(@"-[xor:]",
[[num xor: [OFNumber numberWithInt: 123456831]] asInt] == 42)
TEST(@"-[shiftRight:]",
[[num shiftRight: [OFNumber numberWithInt: 8]] asInt] == 482253)
[pool drain];
}
|