ObjFW  Diff

Differences From Artifact [c99073b249]:

  • File tests/OFArrayTests.m — part of check-in [7fec2ef57e] at 2017-05-01 13:37:26 on branch trunk — Add tests for generic OFArray / OFMutableArray

    These are usually not used, as OFArray_adjacent and
    OFMutableArray_adjacent are used instead. However, they are used if
    someone creates their own subclass of OFArray / OFMutableArray. As they
    are rarely used in production, it is important to run all tests on them. (user: js, size: 11970) [annotate] [blame] [check-ins using]

To Artifact [9dfa280d32]:


73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
		[self release];
		@throw e;
	}

	return self;
}

- initWithObjects: (id const*)objects
	    count: (size_t)count
{
	self = [super init];

	@try {
		_array = [[OFMutableArray alloc] initWithObjects: objects
							   count: count];







|







73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
		[self release];
		@throw e;
	}

	return self;
}

- initWithObjects: (id const *)objects
	    count: (size_t)count
{
	self = [super init];

	@try {
		_array = [[OFMutableArray alloc] initWithObjects: objects
							   count: count];