File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,15 @@ checkShortCode(String csvLine) {
57
57
num lat = double .parse (elements[1 ]);
58
58
num lng = double .parse (elements[2 ]);
59
59
String shortCode = elements[3 ];
60
- String short = olc.shorten (code, lat, lng);
61
- expect (short, equals (shortCode));
62
- String expanded = olc.recoverNearest (short, lat, lng);
63
- expect (expanded, equals (code));
60
+ String testType = elements[4 ];
61
+ if (testType == "B" || testType == "S" ) {
62
+ String short = olc.shorten (code, lat, lng);
63
+ expect (short, equals (shortCode));
64
+ }
65
+ if (testType == "B" || testType == "R" ) {
66
+ String expanded = olc.recoverNearest (shortCode, lat, lng);
67
+ expect (expanded, equals (code));
68
+ }
64
69
}
65
70
66
71
List <String > getCsvLines (String fileName) {
You can’t perform that action at this time.
0 commit comments