Differences From Artifact [6eb26d1d7b]:
- File
tests/OFMD5HashTests.m
— part of check-in
[82801897d3]
at
2022-03-25 10:22:55
on branch trunk
— OFCryptographicHash: Add -[calculate]
Before, -[digest] would do the final calculation, however, this would
mean a property modifies state, which is bad. (user: js, size: 1689) [annotate] [blame] [check-ins using] [more...]
To Artifact [66b4d11501]:
- File
tests/OFMD5HashTests.m
— part of check-in
[1483709ab2]
at
2022-08-01 21:20:54
on branch trunk
— Add support for embedding files into binaries
Embedded files are available via the objfw-embedded: URL scheme. (user: js, size: 1784) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
25 26 27 28 29 30 31 |
"\x00\x8B\x9D\x1B\x58\xDF\xF8\xFE\xEE\xF3\xAE\x8D\xBB\x68\x2D\x38";
@implementation TestsAppDelegate (OFMD5HashTests)
- (void)MD5HashTests
{
void *pool = objc_autoreleasePoolPush();
OFMD5Hash *MD5, *MD5Copy;
| > > | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
"\x00\x8B\x9D\x1B\x58\xDF\xF8\xFE\xEE\xF3\xAE\x8D\xBB\x68\x2D\x38";
@implementation TestsAppDelegate (OFMD5HashTests)
- (void)MD5HashTests
{
void *pool = objc_autoreleasePoolPush();
OFMD5Hash *MD5, *MD5Copy;
OFURL *URL = [OFURL URLWithString: @"objfw-embedded:///testfile.bin"];
OFStream *file = [[OFURLHandler handlerForURL: URL]
openItemAtURL: URL mode: @"r"];
TEST(@"+[hashWithAllowsSwappableMemory:]",
(MD5 = [OFMD5Hash hashWithAllowsSwappableMemory: true]))
while (!file.atEndOfStream) {
char buffer[64];
size_t length = [file readIntoBuffer: buffer length: 64];
|
| ︙ | ︙ |