enable testing of way names, including ways with empty or missing name tags

This commit is contained in:
Emil Tin
2012-02-21 11:51:42 +01:00
parent 15f2b21b62
commit 0984a669ce
4 changed files with 81 additions and 8 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ end
def way_list instructions
instructions.
#reject { |i| i[2]<=1 }. #FIXME temporary hack to ignore instructions with length==0
map { |r| r[1] }.
reject(&:empty?).join(',')
map { |r| r=="" ? '""' : r }.
join(',')
end