Skip to content

Commit

Permalink
Add test for ZKXmlDeserializer blob fix
Browse files Browse the repository at this point in the history
  • Loading branch information
superfell committed Oct 16, 2016
1 parent 17a27c6 commit d3747cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zkSforceTests/zkSforceTests/ZKXmlDeserializerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ -(void)testBlob {
XCTAssertEqualObjects(expected, actual);
}

-(void)testMissingBlob {
NSString *doc = @"<root><c></c></root>";
ZKXmlDeserializer *d = [self deser:doc];
// check that asking for a blob that doesn't exist doesn't barf
XCTAssertNil([d blob:@"b"]);
}

-(void)testStrings {
NSString *doc = @"<root><a>one</a><a>two</a></root>";
ZKXmlDeserializer *d = [self deser:doc];
Expand Down

0 comments on commit d3747cf

Please sign in to comment.