Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

NSArray koans; remove retainCount based tests

  • Loading branch information...
commit ae7b45988947073e57833f7f3fe829ebe6d999ed 1 parent 5d1ceea
Joe Cannatti joecannatti authored

Showing 1 changed file with 16 additions and 3 deletions. Show diff stats Hide diff stats

  1. +16 3 AboutNSArray.m
19 AboutNSArray.m
@@ -6,9 +6,22 @@
6 6 // Copyright 2010 Puppy Sound Software. All rights reserved.
7 7 //
8 8
9   -#import "AboutNSArray.h"
  9 +#import "Kiwi.h"
10 10
  11 +SPEC_BEGIN(AboutNSArray)
11 12
12   -@implementation AboutNSArray
  13 +describe(@"NSArray", ^{
  14 +
  15 + it(@"can be created with no arguments and be empty", ^{
  16 + NSArray *panda = [NSArray array];
  17 + [[theValue([panda count]) should] equal:theValue(1)];
  18 + });
  19 +
  20 + it(@"can be created with a nil terminated list of heterogeneous Objects", ^{
  21 + NSArray *panda = [NSArray arrayWithObjects:@"one",@"two", [NSNumber numberWithInt:3],nil];
  22 + [[theValue([panda count]) should] equal:theValue(1)];
  23 + });
  24 +
  25 +});
13 26
14   -@end
  27 +SPEC_END

0 comments on commit ae7b459

Please sign in to comment.
Something went wrong with that request. Please try again.