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:
rfm 2012-01-07 07:10:45 +00:00
parent 0c97209ee1
commit 51d002c196

View file

@ -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");