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