Move test source code to Tests directory

This commit is contained in:
iska
2016-08-24 19:55:59 +02:00
parent 37444d5899
commit 1df63b8e00
32 changed files with 1 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
//
// HTMLKitTokenizerPerformance.m
// HTMLKit
//
// Created by Iska on 23/03/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "HTMLTokenizer.h"
#import "HTMLTokenizerStates.h"
#import "HTMLTokens.h"
@interface HTMLKitTokenizerPerformance : XCTestCase
@end
@implementation HTMLKitTokenizerPerformance
- (void)testTokenizerPerformance
{
NSString *path = [[NSBundle bundleForClass:self.class] resourcePath];
path = [path stringByAppendingPathComponent:@"HTML Standard.html"];
NSString *string = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
[self measureBlock:^{
HTMLTokenizer *tokenizer = [[HTMLTokenizer alloc] initWithString:string];
[tokenizer allObjects];
}];
}
@end