Extended NSUUID extension

Reference Retrieval now can be used with "undashed" ID strings
Added NSUUID+KeePassKit Test
This commit is contained in:
michael starke
2014-02-17 00:09:25 +01:00
parent 356a8f524e
commit 530bb7ce30
4 changed files with 66 additions and 3 deletions

View 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