Account for imprecision in distance computation
This commit is contained in:
committed by
Patrick Niklaus
parent
24fa94af59
commit
f19bf70b55
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user