ObjFW  Diff

Differences From Artifact [f4ae6e53d2]:

To Artifact [84a8c85775]:


30
31
32
33
34
35
36

37

38
39
40
41
42
43
44
30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
45







+
-
+







- (void)MD5HashTests
{
	void *pool = objc_autoreleasePoolPush();
	OFMD5Hash *md5, *copy;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"r"];

	TEST(@"+[cryptoHashWithAllowsSwappableMemory:]",
	TEST(@"+[cryptoHash]", (md5 = [OFMD5Hash cryptoHash]))
	    (md5 = [OFMD5Hash cryptoHashWithAllowsSwappableMemory: true]))

	while (!f.atEndOfStream) {
		char buf[64];
		size_t len = [f readIntoBuffer: buf
					length: 64];
		[md5 updateWithBuffer: buf
			       length: len];