Lines Matching refs:expect

45             it("should return out", function() { expect(result).toBe(out); });
47 expect(result).toBeEqualish([0, 0.707106, 0, 0.707106]);
56 it("should return out", function() { expect(result).toBe(out); });
58 expect(result).toBeEqualish([0, 0, 0, 1]);
69 expect(result).toBeEqualish([0,0,0,-1]);
78 it("should return out", function() { expect(result).toBe(out); });
80 expect(result).toBeEqualish([1, 0, 0, 0]);
90 it("should return out", function() { expect(result).toBe(out); });
93 expect(vec).toBeEqualish([0, 1, 0]);
102 it("should return out", function() { expect(result).toBe(out); });
105 expect(vec).toBeEqualish([-1, 0, 0]);
114 it("should return out", function() { expect(result).toBe(out); });
117 expect(vec).toBeEqualish([-1, 0, 0]);
133 expect(result).toBeEqualish([-0.707106, 0, 0, 0.707106]);
145 it("should return out", function() { expect(result).toBe(out); });
148 expect(vec3.transformQuat([], [0,1,0], out)).toBeEqualish([0,0,-1]);
159 it("should return out", function() { expect(result).toBe(out); });
162 expect(vec3.transformQuat([], [3,2,-1], quat.normalize(out, out))).toBeEqualish(vec3.transformMat3([], [3,2,-1], matr));
173 it("should return out", function() { expect(result).toBe(out); });
176 expect(vec3.transformQuat([], [3,2,-1], quat.normalize(out, out))).toBeEqualish(vec3.transformMat3([], [3,2,-1], matr));
187 it("should return out", function() { expect(result).toBe(out); });
190 expect(vec3.transformQuat([], [3,2,-1], quat.normalize(out, out))).toBeEqualish(vec3.transformMat3([], [3,2,-1], matr));
210 expect(r).toBeEqualish([1, 0, 0]);
215 expect(r).toBeEqualish([0, 0, 1]);
229 expect(result).toBe(out);
233 expect(out).toBeEqualish([0, 0, 0, 1]);
247 expect(result).toBeEqualish([0.707106, 0, 0, 0.707106]);
261 it("should return out", function() { expect(result).toBe(out); });
264 expect(out).toBeEqualish([0, 0, -0.707106, 0.707106]);
273 it("should return out", function() { expect(result).toBe(out); });
276 expect(vec3.transformQuat(r, [0, 1, 0], out)).toBeEqualish([0, 1, 0]);
285 it("should return out", function() { expect(result).toBe(out); });
288 expect(vec3.transformQuat(r, [1, 0, 0], out)).toBeEqualish([-1, 0, 0]);
297 it("should return out", function() { expect(result).toBe(out); });
300 expect(vec3.transformQuat(r, [0, 1, 0], out)).toBeEqualish([0, -1, 0]);
309 it("should return out", function() { expect(result).toBe(out); });
312 expect(vec3.transformQuat(r, [0, 0, 1], out)).toBeEqualish([0, 0, -1]);
319 it("should return a 4 element array initialized to an identity quaternion", function() { expect(result).toBeEqualish([0, 0, 0, 1]); });
324 it("should return a 4 element array initialized to the values in quatA", function() { expect(result).toBeEqualish(quatA); });
329 it("should return a 4 element array initialized to the values passed", function() { expect(result).toBeEqualish([1, 2, 3, 4]); });
334 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3, 4]); });
335 it("should return out", function() { expect(result).toBe(out); });
340 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3, 4]); });
341 it("should return out", function() { expect(result).toBe(out); });
346 it("should place values into out", function() { expect(result).toBeEqualish([0, 0, 0, 1]); });
347 it("should return out", function() { expect(result).toBe(out); });
352 it("should place values into out", function() { expect(result).toBeEqualish([0.707106, 0, 0, 0.707106]); });
353 it("should return out", function() { expect(result).toBe(out); });
360 it("should place values into out", function() { expect(out).toBeEqualish([6, 8, 10, 12]); });
361 it("should return out", function() { expect(result).toBe(out); });
362 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
363 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
369 it("should place values into quatA", function() { expect(quatA).toBeEqualish([6, 8, 10, 12]); });
370 it("should return quatA", function() { expect(result).toBe(quatA); });
371 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
377 it("should place values into quatB", function() { expect(quatB).toBeEqualish([6, 8, 10, 12]); });
378 it("should return quatB", function() { expect(result).toBe(quatB); });
379 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
384 it("should have an alias called 'mul'", function() { expect(quat.mul).toEqual(quat.multiply); });
389 it("should place values into out", function() { expect(out).toBeEqualish([24, 48, 48, -6]); });
390 it("should return out", function() { expect(result).toBe(out); });
391 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
392 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
398 it("should place values into quatA", function() { expect(quatA).toBeEqualish([24, 48, 48, -6]); });
399 it("should return quatA", function() { expect(result).toBe(quatA); });
400 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
406 it("should place values into quatB", function() { expect(quatB).toBeEqualish([24, 48, 48, -6]); });
407 it("should return quatB", function() { expect(result).toBe(quatB); });
408 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
416 it("should place values into out", function() { expect(out).toBeEqualish([2, 4, 6, 8]); });
417 it("should return out", function() { expect(result).toBe(out); });
418 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
424 it("should place values into quatA", function() { expect(quatA).toBeEqualish([2, 4, 6, 8]); });
425 it("should return quatA", function() { expect(result).toBe(quatA); });
430 it("should have an alias called 'len'", function() { expect(quat.len).toEqual(quat.length); });
434 it("should return the length", function() { expect(result).toBeCloseTo(5.477225); });
438 it("should have an alias called 'sqrLen'", function() { expect(quat.sqrLen).toEqual(quat.squaredLength); });
442 it("should return the squared length", function() { expect(result).toEqual(30); });
451 it("should place values into out", function() { expect(out).toBeEqualish([1, 0, 0, 0]); });
452 it("should return out", function() { expect(result).toBe(out); });
453 it("should not modify quatA", function() { expect(quatA).toBeEqualish([5, 0, 0, 0]); });
459 it("should place values into quatA", function() { expect(quatA).toBeEqualish([1, 0, 0, 0]); });
460 it("should return quatA", function() { expect(result).toBe(quatA); });
468 it("should place values into out", function() { expect(out).toBeEqualish([3, 4, 5, 6]); });
469 it("should return out", function() { expect(result).toBe(out); });
470 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
471 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
477 it("should place values into quatA", function() { expect(quatA).toBeEqualish([3, 4, 5, 6]); });
478 it("should return quatA", function() { expect(result).toBe(quatA); });
479 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
485 it("should place values into quatB", function() { expect(quatB).toBeEqualish([3, 4, 5, 6]); });
486 it("should return quatB", function() { expect(result).toBe(quatB); });
487 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
495 it("should place values into out", function() { expect(out).toBeEqualish([3, 4, 5, 6]); });
496 it("should return out", function() { expect(result).toBe(out); });
497 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
498 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
504 it("should place values into quatA", function() { expect(quatA).toBeEqualish([3, 4, 5, 6]); });
505 it("should return quatA", function() { expect(result).toBe(quatA); });
506 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
512 it("should place values into quatB", function() { expect(quatB).toBeEqualish([3, 4, 5, 6]); });
513 it("should return quatB", function() { expect(result).toBe(quatB); });
514 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
524 it("should place values into out", function() { expect(out).toBeEqualish([-0.033333, -0.066666, -0.1, 0.133333]); });
525 it("should return out", function() { expect(result).toBe(out); });
526 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
532 it("should place values into quatA", function() { expect(quatA).toBeEqualish([-0.033333, -0.066666, -0.1, 0.133333]); });
533 it("should return quatA", function() { expect(result).toBe(quatA); });
541 it("should place values into out", function() { expect(out).toBeEqualish([-1, -2, -3, 4]); });
542 it("should return out", function() { expect(result).toBe(out); });
543 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
549 it("should place values into quatA", function() { expect(quatA).toBeEqualish([-1, -2, -3, 4]); });
550 it("should return quatA", function() { expect(result).toBe(quatA); });
557 it("should return a string representation of the quaternion", function() { expect(result).toEqual("quat(1, 2, 3, 4)"); });