ObjFW  Diff

Differences From Artifact [4b80756e64]:

To Artifact [c46510efe0]:


26
27
28
29
30
31
32

33

34
35
36
37
38
39
40
26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







+
-
+







	"\xE6\x08\x8B";

@implementation TestsAppDelegate (OFRIPEMD160HashTests)
- (void)RIPEMD160HashTests
{
	void *pool = objc_autoreleasePoolPush();
	OFRIPEMD160Hash *RIPEMD160, *RIPEMD160Copy;
	OFURI *URI = [OFURI URIWithString: @"embedded:testfile.bin"];
	OFFile *file = [OFFile fileWithPath: @"testfile.bin" mode: @"r"];
	OFStream *file = [OFURIHandler openItemAtURI: URI mode: @"r"];

	TEST(@"+[hashWithAllowsSwappableMemory:]",
	    (RIPEMD160 = [OFRIPEMD160Hash hashWithAllowsSwappableMemory: true]))

	while (!file.atEndOfStream) {
		char buffer[64];
		size_t length = [file readIntoBuffer: buffer length: 64];