Adium

Changeset 23067

Show
Ignore:
Timestamp:
04/03/2008 05:46:19 PM (8 months ago)
Author:
boredzo
Message:

Added test cases for the rest of the characters that nextURLFromString: may trim. Refs #7267.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/UnitTests/TestHyperlinkScanner.h

    r23061 r23067  
    1919- (void)testGreaterThanBeforeOpenParenthesis; 
    2020- (void)testGreaterThanBeforeCloseParenthesis; 
     21- (void)testGreaterThanBeforeOpenCurlyBracket; 
     22- (void)testGreaterThanBeforeCloseCurlyBracket; 
     23- (void)testGreaterThanBeforeDumbQuote; 
     24- (void)testGreaterThanBeforeApostrophe; 
     25- (void)testGreaterThanBeforeHyphenMinus; 
     26- (void)testGreaterThanBeforeComma; 
     27- (void)testGreaterThanBeforeColon; 
     28- (void)testGreaterThanBeforeSemicolon; 
    2129 
    2230@end 
  • trunk/UnitTests/TestHyperlinkScanner.m

    r23061 r23067  
    4343        [self testGreaterThanBeforeString:@")"]; 
    4444} 
     45- (void)testGreaterThanBeforeOpenCurlyBracket { 
     46        [self testGreaterThanBeforeString:@"{"]; 
     47} 
     48- (void)testGreaterThanBeforeCloseCurlyBracket { 
     49        [self testGreaterThanBeforeString:@"}"]; 
     50} 
     51- (void)testGreaterThanBeforeDumbQuote { 
     52        [self testGreaterThanBeforeString:@"\""]; 
     53} 
     54- (void)testGreaterThanBeforeApostrophe { 
     55        [self testGreaterThanBeforeString:@"'"]; 
     56} 
     57- (void)testGreaterThanBeforeHyphenMinus { 
     58        [self testGreaterThanBeforeString:@"-"]; 
     59} 
     60- (void)testGreaterThanBeforeComma { 
     61        [self testGreaterThanBeforeString:@","]; 
     62} 
     63- (void)testGreaterThanBeforeColon { 
     64        [self testGreaterThanBeforeString:@":"]; 
     65} 
     66- (void)testGreaterThanBeforeSemicolon { 
     67        [self testGreaterThanBeforeString:@";"]; 
     68} 
    4569 
    4670@end