fixing tests to reflect new r-tree data structure
This commit is contained in:
@@ -26,7 +26,11 @@ Then /^routability should be$/ do |table|
|
||||
if got[direction].empty? == false
|
||||
route = way_list json['route_instructions']
|
||||
if route != "w#{i}"
|
||||
got[direction] = "testing w#{i}, but got #{route}!?"
|
||||
if row[direction].empty? == true
|
||||
got[direction] = want
|
||||
else
|
||||
got[direction] = "testing w#{i}, but got #{route}!?"
|
||||
end
|
||||
elsif want =~ /^\d+s/
|
||||
time = json['route_summary']['total_time']
|
||||
got[direction] = "#{time}s"
|
||||
|
||||
Reference in New Issue
Block a user