Overview
Comment: | Remove some unneeded init methods from tests |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | objfwtest |
Files: | files | file ages | folders |
SHA3-256: |
7b5e4dedeadda6517d31129300f3aa6f |
User & Date: | js on 2024-02-13 19:45:43 |
Other Links: | branch diff | manifest | tags |
Context
2024-02-13
| ||
21:13 | Merge trunk into branch "objfwtest" check-in: fa70ca352c user: js tags: objfwtest | |
19:45 | Remove some unneeded init methods from tests check-in: 7b5e4dedea user: js tags: objfwtest | |
02:16 | ObjFWTest: Proper plurals in output check-in: d2b609cdd2 user: js tags: objfwtest | |
Changes
Modified new_tests/OFArrayTests.m from [b5b1833cad] to [805893a2b1].
︙ | ︙ | |||
15 16 17 18 19 20 21 | #include "config.h" #import "OFArrayTests.h" @interface CustomArray: OFArray { | | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include "config.h" #import "OFArrayTests.h" @interface CustomArray: OFArray { OFArray *_array; } @end static OFString *const cArray[] = { @"Foo", @"Bar", @"Baz" |
︙ | ︙ | |||
275 276 277 278 279 280 281 | [([self.arrayClass arrayWithObjects: @"1", @"2", nil]) valueForKey: @"@count"], [OFNumber numberWithInt: 2]); } @end @implementation CustomArray | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | | | 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | [([self.arrayClass arrayWithObjects: @"1", @"2", nil]) valueForKey: @"@count"], [OFNumber numberWithInt: 2]); } @end @implementation CustomArray - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { self = [super init]; @try { _array = [[OFArray alloc] initWithObjects: objects count: count]; } @catch (id e) { [self release]; @throw e; } return self; } |
︙ | ︙ |
Modified new_tests/OFMutableArrayTests.m from [55585061e4] to [29c5b449b7].
︙ | ︙ | |||
170 171 172 173 174 175 176 | [OFIRI IRIWithString: @"http://foo.bar:1234/"], [OFIRI IRIWithString: @"http://bar.qux:1234/"], [OFIRI IRIWithString: @"http://qux.quxqux:1234/"], nil])); } @end @implementation CustomMutableArray | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | [OFIRI IRIWithString: @"http://foo.bar:1234/"], [OFIRI IRIWithString: @"http://bar.qux:1234/"], [OFIRI IRIWithString: @"http://qux.quxqux:1234/"], nil])); } @end @implementation CustomMutableArray - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { self = [super init]; @try { _array = [[OFMutableArray alloc] initWithObjects: objects count: count]; |
︙ | ︙ |
Modified new_tests/OFMutableSetTests.m from [b83e3cedeb] to [8420adbe6c].
︙ | ︙ | |||
89 90 91 92 93 94 95 | [_mutableSet removeAllObjects]; OTAssertEqual(_mutableSet.count, 0); } @end @implementation CustomMutableSet | | < < < < < < < < < < < < < < | < < < < | < < < < < < < < < < < < < < < < < < < < < < < < | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | [_mutableSet removeAllObjects]; OTAssertEqual(_mutableSet.count, 0); } @end @implementation CustomMutableSet - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { self = [super init]; @try { _set = [[OFMutableSet alloc] initWithObjects: objects count: count]; } @catch (id e) { [self release]; @throw e; } return self; } |
︙ | ︙ |
Modified new_tests/OFSetTests.m from [1469e4aeb3] to [7ee6122d59].
︙ | ︙ | |||
15 16 17 18 19 20 21 | #include "config.h" #import "OFSetTests.h" @interface CustomSet: OFSet { | | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include "config.h" #import "OFSetTests.h" @interface CustomSet: OFSet { OFSet *_set; } @end @implementation OFSetTests - (Class)setClass { return [CustomSet class]; |
︙ | ︙ | |||
184 185 186 187 188 189 190 | OTAssertEqualObjects([set valueForKey: @"@count"], [OFNumber numberWithInt: 3]); } @end @implementation CustomSet | | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | < | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | OTAssertEqualObjects([set valueForKey: @"@count"], [OFNumber numberWithInt: 3]); } @end @implementation CustomSet - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { self = [super init]; @try { _set = [[OFSet alloc] initWithObjects: objects count: count]; } @catch (id e) { [self release]; @throw e; } return self; } |
︙ | ︙ |