Frameworks/AutoHyperlinks Framework/UnitTests/SimpleURLTest.h
changeset 5949 334dc418b409
parent 3177 7aafecd5cd6e
equal deleted inserted replaced
5893:1e1382dbd844 5949:334dc418b409
     1 //
     1 //
     2 //  SimpleURLTest.h
     2 //  SimpleURLTest.h
     3 //  AIHyperlinks.framework
     3 //  AIHyperlinks.framework
     4 //
     4 //
     5 
     5 
     6 #import <SenTestingKit/SenTestingKit.h>
     6 #import <XCTest/XCTest.h>
     7 #import "AutoHyperlinks.h"
     7 #import "AutoHyperlinks.h"
     8 
     8 
     9 #define testHyperlink(x) STAssertTrue([AHHyperlinkScanner isStringValidURI: x usingStrict:NO fromIndex:0 withStatus:nil schemeLength:nil],\
     9 #define testHyperlink(x) XCTAssertTrue([AHHyperlinkScanner isStringValidURI: x usingStrict:NO fromIndex:0 withStatus:nil schemeLength:nil],\
    10 					@"\"%@\" Should be a valid URI.", x )
    10 					@"\"%@\" Should be a valid URI.", x )
    11 
    11 
    12 @interface SimpleURLTest : SenTestCase {
    12 @interface SimpleURLTest : XCTestCase {
    13 	AHHyperlinkScanner	*scanner;
    13 	AHHyperlinkScanner	*scanner;
    14 }
    14 }
    15 - (void)testURLOnly;
    15 - (void)testURLOnly;
    16 - (void)testURI;
    16 - (void)testURI;
    17 - (void)testURIWithPaths;
    17 - (void)testURIWithPaths;