mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
33 lines
495 B
Objective-C
33 lines
495 B
Objective-C
//
|
|
// 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
|