mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
started refactoring autotype system to use tokenizer
This commit is contained in:
32
MacPassTests/MPTestToken.m
Normal file
32
MacPassTests/MPTestToken.m
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// MPTestToken.m
|
||||
// MacPassTests
|
||||
//
|
||||
// Created by Michael Starke on 07.11.17.
|
||||
// Copyright © 2017 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
#import "MPToken.h"
|
||||
|
||||
@interface MPTestToken : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation MPTestToken
|
||||
|
||||
- (void)setUp {
|
||||
[super setUp];
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
[super tearDown];
|
||||
}
|
||||
|
||||
- (void)testTokenizing {
|
||||
NSArray *tokens =[MPToken tokenizeString:@"{^}{USERNAME}^S+H{SPACE}"];
|
||||
XCTAssertEqual(7, tokens.count);
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user