Differences From Artifact [1aa6d32b7b]:
- File
tests/OFSetTests.m
— part of check-in
[25c985fec1]
at
2020-08-25 00:11:24
on branch trunk
— OFNumber: Remove (u)int{8,16,32,64} methods
Since C guarantees minimum sizes for char, short, int, long and long
long, these can be used instead. (user: js, size: 6411) [annotate] [blame] [check-ins using] [more...]
To Artifact [297b7fe674]:
- File tests/OFSetTests.m — part of check-in [1b82d3bf4f] at 2021-03-07 20:25:21 on branch trunk — *.m: Fold methods into one line where it fits (user: js, size: 6309) [annotate] [blame] [check-ins using] [more...]
1 | /* | < < | | 1 2 3 4 5 6 7 8 9 | /* * Copyright (c) 2008-2021 Jonathan Schleifer <js@nil.im> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * |
︙ | ︙ | |||
77 78 79 80 81 82 83 | [self release]; @throw e; } return self; } | | < | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | [self release]; @throw e; } return self; } - (instancetype)initWithObject: (id)firstObject arguments: (va_list)arguments { self = [super init]; @try { _set = [[OFMutableSet alloc] initWithObject: firstObject arguments: arguments]; } @catch (id e) { |
︙ | ︙ | |||
158 159 160 161 162 163 164 | state->mutationsPtr = &_mutations; return ret; } @end @implementation TestsAppDelegate (OFSetTests) | | < | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | state->mutationsPtr = &_mutations; return ret; } @end @implementation TestsAppDelegate (OFSetTests) - (void)setTestsWithClass: (Class)setClass mutableClass: (Class)mutableSetClass { void *pool = objc_autoreleasePoolPush(); OFSet *set1, *set2; OFMutableSet *mutableSet; bool ok; size_t i; |
︙ | ︙ |