Frameworks/AutoHyperlinks Framework/UnitTests/NegativeURLTest.h
changeset 5949 334dc418b409
parent 3177 7aafecd5cd6e
equal deleted inserted replaced
5893:1e1382dbd844 5949:334dc418b409
     1 //
     1 //
     2 //  NegativeURLTest.h
     2 //  NegativeURLTest.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) STAssertFalse([AHHyperlinkScanner isStringValidURI: x usingStrict:YES fromIndex:0 withStatus:nil schemeLength:nil], @"%@ is a valid URI and should not be", x)
     9 #define testHyperlink(x) XCTAssertFalse([AHHyperlinkScanner isStringValidURI: x usingStrict:YES fromIndex:0 withStatus:nil schemeLength:nil], @"%@ is a valid URI and should not be", x)
    10 
    10 
    11 
    11 
    12 @interface NegativeURLTest : SenTestCase {
    12 @interface NegativeURLTest : XCTestCase {
    13 }
    13 }
    14 
    14 
    15 - (void)testInvalidURI;
    15 - (void)testInvalidURI;
    16 
    16 
    17 @end
    17 @end