libs-base/Tests/base/NSMutableArray
Earl Robsham a5ed5dbe11
Update -[NSMutableArray removeLastObject] (#433)
* Update `-[NSMutableArray removeLastObject]`

Updates the following implementation to avoid raising an exception if the array is already empty (or notifying observers if applicable):
 * `-[NSMutableArray removeLastObject]`
 * `-[GSMutableArray removeLastObject]`
 * `-[NSKeyValueMutableArray removeLastObject]`
 * `-[NSKeyValueIvarMutableArray removeLastObject]`

This brings the behavior of `-[NSMutableArray removeLastObject]` inline with the Apple implementation, improving compatibility for code bases which use both GNUStep and Apple objc/Foundation implementations.

* Add `-[NSMutableArray removeLastObject]` test case

Adds a test case to ensure `-[NSMutableArray removeLastObject]` does not raise an exception when called on an empty array.
2024-08-10 23:44:02 +02:00
..
basic.m add some keyed coding tests 2013-03-25 11:05:32 +00:00
create.m Important change to the START_SET and END_SET macros to stop their use 2011-02-24 16:26:01 +00:00
general.m Update -[NSMutableArray removeLastObject] (#433) 2024-08-10 23:44:02 +02:00
TestInfo Add TestInfo markers 2011-02-23 18:34:39 +00:00