Skip to content

Commit ca57134

Browse files
committed
rename delta to epsilon
1 parent 2a9f82a commit ca57134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/shared_functions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export function isSetEqual(as, bs, assert) {
5252
let attributeA = avA[0];
5353
let valueA = avA[1];
5454
// If the attribute is called "floatTest" we know to compare
55-
// the values to within some delta. Otherwise, we can
55+
// the values to within some epsilon. Otherwise, we can
5656
// do a straight lookup of the key
57-
let delta = 0.00000000001;
57+
let epsilon = 0.00000000001;
5858
if (attributeA === "floatTest") {
5959
for (let b of bs) {
6060
let avB = b.split(", ");
6161
let attributeB = avB[0];
6262
let valueB = avB[1];
63-
if (attributeB === "floatTest" && Math.abs(valueB - valueA) < delta) {
63+
if (attributeB === "floatTest" && Math.abs(valueB - valueA) < epsilon) {
6464
return true;
6565
}
6666
}

0 commit comments

Comments
 (0)