mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
add tests for removal of a default directly and via -setObject:forKey:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34138 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2b57f1610
commit
f539c1aba4
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ int main()
|
|||
PASS([[defs stringForKey: @"Test Suite Str"] isEqual: @"SetString"],
|
||||
"NSUserDefaults can set/get a string");
|
||||
|
||||
[defs removeObjectForKey: @"Test Suite Bool"];
|
||||
PASS(nil == [defs objectForKey: @"Test Suite Bool"],
|
||||
"NSUserDefaults can use -removeObjectForKey: to remove a bool");
|
||||
|
||||
[defs setObject: nil forKey: @"Test Suite Int"];
|
||||
PASS(nil == [defs objectForKey: @"Test Suite Int"],
|
||||
"NSUserDefaults can use -setObject:forKey: to remove an int");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue