Skip to content

Commit 661cb6d

Browse files
committed
Clean data, add test data, add test cases to README
1 parent 58f53d8 commit 661cb6d

File tree

7 files changed

+132
-1701
lines changed

7 files changed

+132
-1701
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ You will be building an endpoint that allows users to search a data set. Include
1212
- As a user I am provided meaningful feedback should no route exist between the airports.
1313
- As a user I am provided meaningful feedback if an error occurred with my request.
1414

15+
### Testing
16+
17+
Within the `data` folder you will find two subdirectories, `test` and `full`. `test` offers a small subset of the data found in `full` which you may use when developing your solution. Your final solution however must be performant with the `full` set.
18+
19+
Some test cases to consider on the `test` data set.
20+
21+
| Origin | Destination | Expected Result |
22+
|--------|-------------|--------------------------|
23+
| YYZ | JFK | YYZ -> JFK |
24+
| YYZ | YVR | YYZ -> JFK -> LAX -> YVR |
25+
| YYZ | ORD | No Route |
26+
| XXX | ORD | Invalid Origin |
27+
| ORD | XXX | Invalid Destination |
28+
1529
### Getting Started
1630

1731
For this test you can use any technology you want... seriously. Node.js? Do it. .NET? Send it. PHP? That still exists? Basically, the point is, use whatever you want, really, no need to try and impress us with a new tech if you aren’t familiar with it, use what you like, anyone can learn a new framework. The only downside is because we want to leave this up to you, we can’t really boilerplate the build steps and such for you, so that adds a little bit of time for you... sorry.

data/airlines.csv renamed to data/full/airlines.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name,2 Digit Code,3 Digit Code,Country
2-
Air China,CA,CCA,China
2+
Air Canada,AC,ACA,Canada
33
China Southern Airlines,CZ,CSN,China
44
Southwest Airlines,WN,SWA,United States
55
Turkish Airlines,TK,THY,Turkey

data/airports.csv renamed to data/full/airports.csv

Lines changed: 101 additions & 1632 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)