tests improved again

This commit is contained in:
Kilian Hofmann 2016-04-17 17:59:49 +02:00
parent f7dd12745f
commit 97992a66cc

View File

@ -39,6 +39,7 @@
- (void)testWaypoint - (void)testWaypoint
{ {
XCTAssertTrue([parser findWaypoint:@"DKB"].count > 0); XCTAssertTrue([parser findWaypoint:@"DKB"].count > 0);
XCTAssertTrue([parser findWaypoint:@"BURAM"].count > 0);
XCTAssertTrue([parser findWaypoint:@"NNNN"].count == 0); XCTAssertTrue([parser findWaypoint:@"NNNN"].count == 0);
} }
@ -59,6 +60,9 @@
XCTAssertTrue( XCTAssertTrue(
[[parser findCrosspointBetween:@"T104" and:@"T702" withStart:@"DKB"] [[parser findCrosspointBetween:@"T104" and:@"T702" withStart:@"DKB"]
.firstObject isEqualToString:@"WLD"]); .firstObject isEqualToString:@"WLD"]);
XCTAssertTrue(
[[parser findCrosspointBetween:@"T702" and:@"T104" withStart:@"DKB"]
.firstObject isEqualToString:@"WLD"]);
XCTAssertTrue([parser findCrosspointBetween:@"T104" XCTAssertTrue([parser findCrosspointBetween:@"T104"
and:@"A1" and:@"A1"
withStart:@"DKB"] == nil); withStart:@"DKB"] == nil);