Skip to content
Browse files

Add NSString+digest unit test

  • Loading branch information...
1 parent 1f35dbf commit 31ecde9559ab0a4e0cf269b1d845c40bed64ff2f @wader committed
Showing with 16 additions and 0 deletions.
  1. +6 −0 NSString+digest/NSString+digestTest.h
  2. +10 −0 NSString+digest/NSString+digestTest.m
View
6 NSString+digest/NSString+digestTest.h
@@ -0,0 +1,6 @@
+#import <SenTestingKit/SenTestingKit.h>
+#import <UIKit/UIKit.h>
+
+@interface NSString_digestTest : SenTestCase
+- (void)testDigest;
+@end
View
10 NSString+digest/NSString+digestTest.m
@@ -0,0 +1,10 @@
+#import "NSString+digestTest.h"
+#import "NSString+digest.h"
+
+@implementation NSString_digestTest
+
+- (void)testDigest {
+ STAssertEqualObjects([@"test" md5], @"098f6bcd4621d373cade4e832627b4f6", @"");
+}
+
+@end

0 comments on commit 31ecde9

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