Differences From Artifact [dfc17ad706]:
- File tests/OFTCPSocketTests.m — part of check-in [e3c5bb70dd] at 2021-04-17 13:58:44 on branch new-naming-convention — of_socket_address_t -> OFSocketAddress (user: js, size: 1528) [annotate] [blame] [check-ins using] [more...]
To Artifact [a30a596e10]:
- File
tests/OFTCPSocketTests.m
— part of check-in
[14f1e22d79]
at
2021-05-08 23:22:59
on branch trunk
— tests: Align more with ObjFW style
ObjFW's style changed over the years, but the tests were never adjusted
to it. (user: js, size: 1537) [annotate] [blame] [check-ins using]
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | - + | @implementation TestsAppDelegate (OFTCPSocketTests) - (void)TCPSocketTests { void *pool = objc_autoreleasePoolPush(); OFTCPSocket *server, *client = nil, *accepted; uint16_t port; |
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - + + | TEST(@"-[remoteAddress]", [OFSocketAddressString(accepted.remoteAddress) isEqual: @"127.0.0.1"]) TEST(@"-[writeString:]", [client writeString: @"Hello!"]) TEST(@"-[readIntoBuffer:length:]", |