Skip to content

Commit 8c75878

Browse files
jmannaufloryst
authored andcommitted
revert(DataArray): revert unneeded change
1 parent 56e04ea commit 8c75878

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/Common/Core/DataArray/test/testDataArray.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
33
import { VtkDataTypes } from 'vtk.js/Sources/Common/Core/DataArray/Constants';
44
import * as vtkMath from 'vtk.js/Sources/Common/Core/Math';
55

6-
function compareFloat(a, b) {
7-
return Math.abs(a - b) < Number.EPSILON;
8-
}
9-
106
test('Test vtkDataArray instance', (t) => {
117
t.ok(vtkDataArray, 'Make sure the class definition exists');
128
const instance = vtkDataArray.newInstance({ size: 256 });
@@ -223,6 +219,7 @@ test('Test vtkDataArray getRange function with multi-channel data.', (t) => {
223219
newArray[i * 3 + 2] = i;
224220
}
225221

222+
const compareFloat = (a, b) => Math.abs(a - b) < Number.EPSILON;
226223
const vecRange = da.getRange(-1);
227224
t.ok(
228225
compareFloat(vecRange[0].toFixed(2), 0.0),

0 commit comments

Comments
 (0)