const length = Math.sqrt(1 * 1 + 2 * 2 + 3 * 3 + 4 * 4); const expected = [ 1 / length, 2 / length, 3 / length, 4 / length, ]; testQuatWithAndWithoutDest((a, dst) => { return quat.normalize(a, dst); }, expected, [1, 2, 3, 4]);