Account for imprecision in distance computation

This commit is contained in:
Patrick Niklaus
2016-11-17 19:41:14 +00:00
committed by Patrick Niklaus
parent 24fa94af59
commit f19bf70b55
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = function () {
outputRow[direction] = result[direction].status ?
result[direction].status.toString() : '';
break;
case /^\d+ s/.test(want):
case /^[\d\.]+ s/.test(want):
// the result here can come back as a non-number value like
// `diff`, but we only want to apply the unit when it comes
// back as a number, for tableDiff's literal comparison