ObjFW  Check-in [0bb31fb062]

Overview
Comment:Fix wrong case in tests output.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0bb31fb062101b584ed015b04b3489d8e2703d6975d9fdacf5990e1f69675c01
User & Date: js on 2011-08-03 00:37:07
Other Links: manifest | tags
Context
2011-08-03
01:55
D'oh... check-in: e8dccdf9a9 user: js tags: trunk
00:37
Fix wrong case in tests output. check-in: 0bb31fb062 user: js tags: trunk
00:30
Make OFArray an abstract class. check-in: a855618045 user: js tags: trunk
Changes

Modified tests/OFMD5HashTests.m from [e80a1f9b87] to [52721c9fd6].

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- (void)MD5HashTests
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFMD5Hash *md5;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"rb"];

	TEST(@"+[md5Hash]", (md5 = [OFMD5Hash MD5Hash]))

	while (![f isAtEndOfStream]) {
		char buf[64];
		size_t len = [f readNBytes: 64
				intoBuffer: buf];
		[md5 updateWithBuffer: buf
			       length: len];







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- (void)MD5HashTests
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFMD5Hash *md5;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"rb"];

	TEST(@"+[MD5Hash]", (md5 = [OFMD5Hash MD5Hash]))

	while (![f isAtEndOfStream]) {
		char buf[64];
		size_t len = [f readNBytes: 64
				intoBuffer: buf];
		[md5 updateWithBuffer: buf
			       length: len];

Modified tests/OFSHA1HashTests.m from [18f5bdbcf3] to [7b02c4311c].

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
- (void)SHA1HashTests
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFSHA1Hash *sha1;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"rb"];

	TEST(@"+[sha1Hash]", (sha1 = [OFSHA1Hash SHA1Hash]))

	while (![f isAtEndOfStream]) {
		char buf[64];
		size_t len = [f readNBytes: 64
				intoBuffer: buf];
		[sha1 updateWithBuffer: buf
				length: len];







|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
- (void)SHA1HashTests
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFSHA1Hash *sha1;
	OFFile *f = [OFFile fileWithPath: @"testfile.bin"
				    mode: @"rb"];

	TEST(@"+[SHA1Hash]", (sha1 = [OFSHA1Hash SHA1Hash]))

	while (![f isAtEndOfStream]) {
		char buf[64];
		size_t len = [f readNBytes: 64
				intoBuffer: buf];
		[sha1 updateWithBuffer: buf
				length: len];