mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
Reference Retrieval now can be used with "undashed" ID strings Added NSUUID+KeePassKit Test
24 lines
606 B
Objective-C
24 lines
606 B
Objective-C
//
|
|
// KPKTestUUIDAdditions.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 16.02.14.
|
|
// Copyright (c) 2014 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import <XCTest/XCTest.h>
|
|
#import "NSUUID+KeePassKit.h"
|
|
@interface KPKTestUUIDAdditions : XCTestCase
|
|
|
|
@end
|
|
|
|
@implementation KPKTestUUIDAdditions
|
|
|
|
- (void)testUndelemitedUUID {
|
|
NSUUID *uuid1 = [[NSUUID alloc] initWithUUIDString:@"31C1F2E6-BF71-4350-BE58-05216AFC5AFF"];
|
|
NSUUID *uuid2 = [[NSUUID alloc] initWithUndelemittedUUIDString:@"31C1F2E6BF714350BE5805216AFC5AFF"];
|
|
XCTAssertTrue([uuid1 isEqual:uuid2], @"UUIDs shoudl match");
|
|
}
|
|
|
|
@end
|