From 5059bc8442f56991d5e10fde13d3f37a2af438f6 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 11 Nov 2014 21:41:35 +0100 Subject: [PATCH] Updated reference test to use mixed cases --- KeePassKit | 2 +- MacPassTests/KPKTestReference.m | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/KeePassKit b/KeePassKit index dc1742bb..982136f2 160000 --- a/KeePassKit +++ b/KeePassKit @@ -1 +1 @@ -Subproject commit dc1742bbb29039faacc43df9aaf0026b2ecbecdf +Subproject commit 982136f233dc5f4931bda1563c7b02fbca864885 diff --git a/MacPassTests/KPKTestReference.m b/MacPassTests/KPKTestReference.m index f2e3c529..6598bc7a 100644 --- a/MacPassTests/KPKTestReference.m +++ b/MacPassTests/KPKTestReference.m @@ -19,13 +19,13 @@ @implementation KPKTestReference -- (void)testCorrectReference { +- (void)testCorrectUUIDReference { KPKTree *tree = [[KPKTree alloc] init]; KPKGroup *group = [[KPKGroup alloc] init]; KPKEntry *entry1 = [[KPKEntry alloc] init]; KPKEntry *entry2 = [[KPKEntry alloc] init]; entry1.title = @"-Entry1Title-"; - entry2.title = [[NSString alloc] initWithFormat:@"Nothing{REF:T@I:%@}Changed", entry1.uuid.UUIDString];; + entry2.title = [[NSString alloc] initWithFormat:@"Nothing{ref:t@i:%@}Changed", entry1.uuid.UUIDString];; entry2.url = @"-Entry2URL-"; [group addEntry:entry1]; @@ -36,13 +36,13 @@ XCTAssertTrue([result isEqualToString:@"Nothing-Entry1Title-Changed"], @"Replaced Strings should match"); } -- (void)testRecursiveReference{ +- (void)testRecursiveUUIDReference{ KPKTree *tree = [[KPKTree alloc] init]; KPKGroup *group = [[KPKGroup alloc] init]; KPKEntry *entry1 = [[KPKEntry alloc] init]; KPKEntry *entry2 = [[KPKEntry alloc] init]; - entry1.title = [[NSString alloc] initWithFormat:@"Title1{REF:A@I:%@}", entry2.uuid.UUIDString]; - entry2.title = [[NSString alloc] initWithFormat:@"Nothing{REF:T@I:%@}Changed", entry1.uuid.UUIDString]; + entry1.title = [[NSString alloc] initWithFormat:@"Title1{REF:A@i:%@}", entry2.uuid.UUIDString]; + entry2.title = [[NSString alloc] initWithFormat:@"Nothing{REF:t@I:%@}Changed", entry1.uuid.UUIDString]; entry2.url = @"-Entry2URL-"; [group addEntry:entry1]; @@ -53,7 +53,7 @@ XCTAssertTrue([result isEqualToString:@"NothingTitle1-Entry2URL-Changed"], @"Replaced Strings should match"); } -- (void)testWrongRefernceFormat { +- (void)testWrongRefernce { XCTFail(@"Missing Test"); } @@ -61,7 +61,7 @@ XCTFail(@"Missing Test"); } -- (void)testMultipleMatchinRefernce { +- (void)testMultipleMatchinReference { XCTFail(@"Missing Test"); }