Differences From Artifact [1bd462ec42]:
- File tests/OFNumberTests.m — part of check-in [e4344e3c5e] at 2010-04-30 13:07:56 on branch trunk — OFNumber API improvement. (user: js, size: 1407) [annotate] [blame] [check-ins using]
To Artifact [db3030c448]:
- File tests/OFNumberTests.m — part of check-in [8fd09d2c59] at 2010-05-13 17:11:57 on branch trunk — Add -[remainderOfDivisionWithNumber:] to OFNumber. (user: js, size: 1545) [annotate] [blame] [check-ins using]
︙ | |||
46 47 48 49 50 51 52 53 54 55 56 | 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 |