mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
Extended NSUUID extension
Reference Retrieval now can be used with "undashed" ID strings Added NSUUID+KeePassKit Test
This commit is contained in:
23
MacPassTests/KPKTestUUIDAdditions.m
Normal file
23
MacPassTests/KPKTestUUIDAdditions.m
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user