Skip to content

Commit

Permalink
defensive testing
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Dec 4, 2010
1 parent b39f4d2 commit ffdf90e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/v1.0/GRBoolean_v1_0_Test.m
Expand Up @@ -117,11 +117,13 @@ - (void)test_GRNo_isFalseValue {
- (void)test_NSNumberWithBoolYES_isTrueValue {
NSDictionary *context = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:@"bool"];
STAssertEquals((NSInteger)[self booleanInterpretationForObject:context key:@"bool"], (NSInteger)YES, nil);
STAssertEquals((NSInteger)[self booleanInterpretationForObject:[NSNumber numberWithBool:YES] key:@"."], (NSInteger)YES, nil);
}

- (void)test_NSNumberWithBoolNO_isFalseValue {
NSDictionary *context = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"bool"];
STAssertEquals((NSInteger)[self booleanInterpretationForObject:context key:@"bool"], (NSInteger)NO, nil);
STAssertEquals((NSInteger)[self booleanInterpretationForObject:[NSNumber numberWithBool:NO] key:@"."], (NSInteger)NO, nil);
}

@end
Expand Down

0 comments on commit ffdf90e

Please sign in to comment.