Resolving of references added (but not finished)

This commit is contained in:
michael starke
2014-02-16 02:23:00 +01:00
parent 1f1c6d5dcb
commit 356a8f524e
4 changed files with 19 additions and 6 deletions

View File

@@ -1603,6 +1603,8 @@
4C5CD35217D15DBD000B7F38 /* NSString+Empty.m */, 4C5CD35217D15DBD000B7F38 /* NSString+Empty.m */,
4C5CD35317D15DBD000B7F38 /* NSString+Hexdata.h */, 4C5CD35317D15DBD000B7F38 /* NSString+Hexdata.h */,
4C5CD35417D15DBD000B7F38 /* NSString+Hexdata.m */, 4C5CD35417D15DBD000B7F38 /* NSString+Hexdata.m */,
4C89F51F182F9FDD0069C73C /* NSString+Commands.h */,
4C89F520182F9FDD0069C73C /* NSString+Commands.m */,
4C1842BE179B5BFD00E2F5BC /* NSData+CommonCrypto.h */, 4C1842BE179B5BFD00E2F5BC /* NSData+CommonCrypto.h */,
4C1842BF179B5BFD00E2F5BC /* NSData+CommonCrypto.m */, 4C1842BF179B5BFD00E2F5BC /* NSData+CommonCrypto.m */,
4C2724D51778FF1A00FD8456 /* NSUUID+KeePassKit.h */, 4C2724D51778FF1A00FD8456 /* NSUUID+KeePassKit.h */,
@@ -1615,8 +1617,6 @@
4C6366AB17AF1E0100AAF17D /* NSColor+KeePassKit.m */, 4C6366AB17AF1E0100AAF17D /* NSColor+KeePassKit.m */,
4C6C72C217C01E4200768849 /* NSMutableData+KeePassKit.h */, 4C6C72C217C01E4200768849 /* NSMutableData+KeePassKit.h */,
4C6C72C317C01E4200768849 /* NSMutableData+KeePassKit.m */, 4C6C72C317C01E4200768849 /* NSMutableData+KeePassKit.m */,
4C89F51F182F9FDD0069C73C /* NSString+Commands.h */,
4C89F520182F9FDD0069C73C /* NSString+Commands.m */,
); );
path = Categories; path = Categories;
sourceTree = "<group>"; sourceTree = "<group>";

View File

@@ -33,7 +33,7 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "4C45FB19178E09ED0010007D" BlueprintIdentifier = "4C45FB19178E09ED0010007D"
BuildableName = "MacPassTests.octest" BuildableName = "MacPassTests.xctest"
BlueprintName = "MacPassTests" BlueprintName = "MacPassTests"
ReferencedContainer = "container:MacPass.xcodeproj"> ReferencedContainer = "container:MacPass.xcodeproj">
</BuildableReference> </BuildableReference>

View File

@@ -7,6 +7,7 @@
// //
#import <XCTest/XCTest.h> #import <XCTest/XCTest.h>
#import "NSString+Commands.h"
@interface KPKTestReference : XCTestCase @interface KPKTestReference : XCTestCase
@@ -14,9 +15,21 @@
@implementation KPKTestReference @implementation KPKTestReference
- (void)testExample - (void)testCorrectReference {
{ NSString *reference = @"This is some nice stuff {REF:T@U:blubber} and another Reference {REF:U@I:2687345AASTA}";
[reference resolveReferencesWithTree:nil];
}
- (void)testWrongRefernceFormat {
XCTFail(@"Missing Test");
}
- (void)testUnknownReference {
XCTFail(@"Missing Test");
}
- (void)testMultipleMatchinRefernce {
XCTFail(@"Missing Test");
} }
@end @end