Permalink
Browse files

NSArray koans; remove retainCount based tests

  • Loading branch information...
1 parent 5d1ceea commit ae7b45988947073e57833f7f3fe829ebe6d999ed @joecannatti joecannatti committed Dec 31, 2010
Showing with 16 additions and 3 deletions.
  1. +16 −3 AboutNSArray.m
View
19 AboutNSArray.m
@@ -6,9 +6,22 @@
// Copyright 2010 Puppy Sound Software. All rights reserved.
//
-#import "AboutNSArray.h"
+#import "Kiwi.h"
+SPEC_BEGIN(AboutNSArray)
-@implementation AboutNSArray
+describe(@"NSArray", ^{
+
+ it(@"can be created with no arguments and be empty", ^{
+ NSArray *panda = [NSArray array];
+ [[theValue([panda count]) should] equal:theValue(1)];
+ });
+
+ it(@"can be created with a nil terminated list of heterogeneous Objects", ^{
+ NSArray *panda = [NSArray arrayWithObjects:@"one",@"two", [NSNumber numberWithInt:3],nil];
+ [[theValue([panda count]) should] equal:theValue(1)];
+ });
+
+});
-@end
+SPEC_END

0 comments on commit ae7b459

Please sign in to comment.