mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
sheck setting children to nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34453 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0c97209ee1
commit
51d002c196
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,10 @@ int main()
|
|||
|
||||
PASS(1 == [child1 level], "child element node level is one");
|
||||
|
||||
PASS_RUNS([root1 setChildren: nil],
|
||||
"may set a nil array of children");
|
||||
PASS(0 == [[root1 children] count], "setting nil children works");
|
||||
|
||||
PASS_EXCEPTION([root1 removeChildAtIndex: 100], NSRangeException,
|
||||
"removing child from invalid index raises");
|
||||
|
||||
|
|
Loading…
Reference in a new issue