From ffdf90e254adecad90159585b4bae8cb77f85676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Rou=C3=A9?= Date: Sat, 4 Dec 2010 14:11:03 +0100 Subject: [PATCH] defensive testing --- Tests/v1.0/GRBoolean_v1_0_Test.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/v1.0/GRBoolean_v1_0_Test.m b/Tests/v1.0/GRBoolean_v1_0_Test.m index de8bb794..cd988d9a 100644 --- a/Tests/v1.0/GRBoolean_v1_0_Test.m +++ b/Tests/v1.0/GRBoolean_v1_0_Test.m @@ -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