Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NSArray koans; remove retainCount based tests

  • Loading branch information...
commit ae7b45988947073e57833f7f3fe829ebe6d999ed 1 parent 5d1ceea
Joe Cannatti joecannatti authored
Showing with 16 additions and 3 deletions.
  1. +16 −3 AboutNSArray.m
19 AboutNSArray.m
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.