Permalink
Browse files

Update submodule URL for twitter-text-conformance

  • Loading branch information...
1 parent 2026773 commit 470bb2b929eb02c17198ddfaa18fdd45d72594c1 @psychs psychs committed Nov 9, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 .gitmodules
  2. +4 −1 testproject/TwitterTextTests.m
View
@@ -1,3 +1,3 @@
[submodule "test/twitter-text-conformance"]
path = test/twitter-text-conformance
- url = git@github.com:twitter/twitter-text-conformance.git
+ url = git://github.com/twitter/twitter-text-conformance.git
@@ -13,6 +13,9 @@
#import "TwitterTextTests.h"
#import "TwitterText.h"
+#define HTTP_SHORT_URL_LENGTH 20
+#define HTTPS_SHORT_URL_LENGTH 21
+
@implementation TwitterTextTests
- (void)setUp
@@ -377,7 +380,7 @@ - (void)testValidate
for (NSDictionary *testCase in lengths) {
NSString *text = [testCase objectForKey:@"text"];
NSInteger expected = [[testCase objectForKey:@"expected"] intValue];
- NSInteger len = [TwitterText tweetLength:text];
+ NSInteger len = [TwitterText tweetLength:text httpURLLength:HTTP_SHORT_URL_LENGTH httpsURLLength:HTTPS_SHORT_URL_LENGTH];
STAssertTrue(len == expected, @"Length should be %d (%d)", expected, len);
}
}

0 comments on commit 470bb2b

Please sign in to comment.