Differences From Artifact [145ac3ede5]:
- File
tests/OFDataTests.m
— part of check-in
[b5a74319e1]
at
2021-04-07 19:22:20
on branch trunk
— OF{Data,String}+CryptoHashing: Rename methods
This makes it clearer that these return a string and not a hash object. (user: js, size: 7380) [annotate] [blame] [check-ins using] [more...]
To Artifact [0b61c12094]:
- File tests/OFDataTests.m — part of check-in [61fc389aee] at 2021-04-17 00:14:33 on branch new-naming-convention — of_comparison_result_t -> OFComparisonResult (user: js, size: 7374) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
59 60 61 62 63 64 65 | TEST(@"-[mutableCopy]", (mutable = [[immutable mutableCopy] autorelease]) && [mutable isEqual: immutable]) TEST(@"-[compare]", [mutable compare: immutable] == 0 && R([mutable removeLastItem]) && | | | | | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | TEST(@"-[mutableCopy]", (mutable = [[immutable mutableCopy] autorelease]) && [mutable isEqual: immutable]) TEST(@"-[compare]", [mutable compare: immutable] == 0 && R([mutable removeLastItem]) && [immutable compare: mutable] == OFOrderedDescending && [mutable compare: immutable] == OFOrderedAscending && [[OFData dataWithItems: "aa" count: 2] compare: [OFData dataWithItems: "z" count: 1]] == OFOrderedAscending) TEST(@"-[hash]", immutable.hash == 0x634A529F) mutable = [OFMutableData dataWithItems: "abcdef" count: 6]; TEST(@"-[removeLastItem]", R([mutable removeLastItem]) && mutable.count == 5 && memcmp(mutable.items, "abcde", 5) == 0) |
︙ | ︙ |