Differences From Artifact [7f38bebd95]:
- File
tests/OFStreamTests.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: 1752) [annotate] [blame] [check-ins using] [more...]
To Artifact [641e91bbf2]:
- File tests/OFStreamTests.m — part of check-in [826147d4e9] at 2021-08-09 16:41:42 on branch trunk — OFStreamTests: Work around Apple GCC 4.0.1 bug (user: js, size: 1803) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
68 69 70 71 72 73 74 | OFString *string; char *cString; cString = OFAllocMemory(pageSize - 2, 1); memset(cString, 'X', pageSize - 3); cString[pageSize - 3] = '\0'; | | > | > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | OFString *string; char *cString; cString = OFAllocMemory(pageSize - 2, 1); memset(cString, 'X', pageSize - 3); cString[pageSize - 3] = '\0'; TEST(@"-[readLine] #1", [[test readLine] isEqual: @"foo"]) string = [test readLine]; TEST(@"-[readLine] #2", string != nil && string.length == pageSize - 3 && !strcmp(string.UTF8String, cString)) OFFreeMemory(cString); objc_autoreleasePoolPop(pool); } @end |