Updated submodule

Added Test for Hashed data
This commit is contained in:
michael starke
2013-08-09 01:58:43 +02:00
parent bc0af02be4
commit 4b42493376
8 changed files with 58 additions and 26 deletions

View File

@@ -34,18 +34,6 @@
STAssertTrue([tree.root.groups count] == 0, @"Tree contains just root group");
STAssertTrue([tree.root.entries count] == 1, @"Tree has only one entry");
KPKEntry *entry = [tree.root.entries lastObject];
NSMutableData *data = [[NSMutableData alloc] init];
NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
[entry encodeWithCoder:archiver];
[archiver finishEncoding];
NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data];
KPKEntry *newEntry = [[KPKEntry alloc] initWithCoder:unarchiver];
[unarchiver finishDecoding];
STAssertTrue([entry.title isEqualToString:newEntry.title], @"Entries must have same attributes");
}
@end