Differences From Artifact [0def59b121]:
- File tests/OFTCPSocket.m — part of check-in [666d38f8be] at 2010-04-07 20:56:48 on branch trunk — Make tests an OFApplicationDelegate. (user: js, size: 1635) [annotate] [blame] [check-ins using]
- File tests/OFTCPSocketTests.m — part of check-in [7bbce47bda] at 2010-04-07 21:06:16 on branch trunk — Rename tests files so they are named after the category they implement. (user: js, size: 1635) [annotate] [blame] [check-ins using]
To Artifact [a3ffe30f8b]:
- File tests/OFTCPSocketTests.m — part of check-in [04dc76c8c3] at 2010-04-11 17:55:39 on branch trunk — Add -[remoteAddress] to OFTCPSocket. (user: js, size: 1718) [annotate] [blame] [check-ins using]
︙ | |||
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | + + + | TEST(@"-[connectToService:onNode:]", [client connectToService: service onNode: @"localhost"]) TEST(@"-[accept]", (accepted = [server accept])) TEST(@"-[remoteAddress]", [[accepted remoteAddress] isEqual: @"127.0.0.1"]) TEST(@"-[writeString:]", [client writeString: @"Hello!"]) TEST(@"-[readNBytes:intoBuffer:]", [accepted readNBytes: 6 intoBuffer: buf] && !memcmp(buf, "Hello!", 6)) [pool drain]; } @end |