const expected = 1 * 1 + 2 * 2 + 3 * 3 + 4 * 4; const value = quat.lengthSq(quat.create(1, 2, 3, 4)); assertStrictEqual(value, expected);