Skip to content

Commit

Permalink
Spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshvera committed Oct 26, 2012
1 parent 65b93f6 commit 9764210
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Mantle/NSObject+MTLComparisonAdditions.m
Expand Up @@ -12,5 +12,5 @@
#import "NSObject+MTLComparisonAdditions.h" #import "NSObject+MTLComparisonAdditions.h"


BOOL MTLEqualObjects(id obj1, id obj2) { BOOL MTLEqualObjects(id obj1, id obj2) {
return (obj1 == obj2 || [obj1 isEqual:obj2]); return (obj1 == obj2 || [obj1 isEqual:obj2]);
} }
30 changes: 15 additions & 15 deletions MantleTests/MTLComparisonAdditionsSpec.m
Expand Up @@ -17,25 +17,25 @@
id obj1 = @"Test1"; id obj1 = @"Test1";
id obj2 = @"Test2"; id obj2 = @"Test2";


it(@"returns true when given two values of nil", ^{ it(@"returns true when given two values of nil", ^{
expect(MTLEqualObjects(nil, nil)).to.beTruthy(); expect(MTLEqualObjects(nil, nil)).to.beTruthy();
}); });


it(@"returns true when given two equal objects", ^{ it(@"returns true when given two equal objects", ^{
expect(MTLEqualObjects(obj1, obj1)).to.beTruthy(); expect(MTLEqualObjects(obj1, obj1)).to.beTruthy();
}); });


it(@"returns false when given two inequal objects", ^{ it(@"returns false when given two inequal objects", ^{
expect(MTLEqualObjects(obj1, obj2)).to.beFalsy(); expect(MTLEqualObjects(obj1, obj2)).to.beFalsy();
}); });


it(@"returns false when given an object and nil", ^{ it(@"returns false when given an object and nil", ^{
expect(MTLEqualObjects(obj1, nil)).to.beFalsy(); expect(MTLEqualObjects(obj1, nil)).to.beFalsy();
}); });


it(@"returns the same value when given symmetric arguments", ^{ it(@"returns the same value when given symmetric arguments", ^{
expect(MTLEqualObjects(obj2, obj1)).to.equal(MTLEqualObjects(obj1, obj2)); expect(MTLEqualObjects(obj2, obj1)).to.equal(MTLEqualObjects(obj1, obj2));
}); });
}); });


SpecEnd SpecEnd

0 comments on commit 9764210

Please sign in to comment.