tests made better
This commit is contained in:
parent
aa19108d26
commit
f7dd12745f
@ -39,15 +39,18 @@
|
|||||||
- (void)testWaypoint
|
- (void)testWaypoint
|
||||||
{
|
{
|
||||||
XCTAssertTrue([parser findWaypoint:@"DKB"].count > 0);
|
XCTAssertTrue([parser findWaypoint:@"DKB"].count > 0);
|
||||||
|
XCTAssertTrue([parser findWaypoint:@"NNNN"].count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)testAirway
|
- (void)testAirway
|
||||||
{
|
{
|
||||||
XCTAssertTrue([parser findAirway:@"T104"].count > 0);
|
XCTAssertTrue([parser findAirway:@"T104"].count > 0);
|
||||||
|
XCTAssertTrue([parser findAirway:@"T104T"].count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)testWaypointOnAirway
|
- (void)testWaypointOnAirway
|
||||||
{
|
{
|
||||||
|
XCTAssertTrue([parser findWaypoint:@"DKB" onAirway:@"T104"].count > 0);
|
||||||
XCTAssertTrue([parser findWaypoint:@"DKB" onAirway:@"T702"].count == 0);
|
XCTAssertTrue([parser findWaypoint:@"DKB" onAirway:@"T702"].count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,6 +59,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:@"T104"
|
||||||
|
and:@"A1"
|
||||||
|
withStart:@"DKB"] == nil);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user