Skip to content

Commit

Permalink
Clean data, add test data, add test cases to README
Browse files Browse the repository at this point in the history
  • Loading branch information
godd9170 committed May 22, 2019
1 parent 58f53d8 commit 661cb6d
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 1,701 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ You will be building an endpoint that allows users to search a data set. Include
- As a user I am provided meaningful feedback should no route exist between the airports.
- As a user I am provided meaningful feedback if an error occurred with my request.

### Testing

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.

Some test cases to consider on the `test` data set.

| Origin | Destination | Expected Result |
|--------|-------------|--------------------------|
| YYZ | JFK | YYZ -> JFK |
| YYZ | YVR | YYZ -> JFK -> LAX -> YVR |
| YYZ | ORD | No Route |
| XXX | ORD | Invalid Origin |
| ORD | XXX | Invalid Destination |

### Getting Started

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.
Expand Down
2 changes: 1 addition & 1 deletion data/airlines.csv → data/full/airlines.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name,2 Digit Code,3 Digit Code,Country
Air China,CA,CCA,China
Air Canada,AC,ACA,Canada
China Southern Airlines,CZ,CSN,China
Southwest Airlines,WN,SWA,United States
Turkish Airlines,TK,THY,Turkey
Expand Down
1,733 changes: 101 additions & 1,632 deletions data/airports.csv → data/full/airports.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 661cb6d

Please sign in to comment.