Lines Matching refs:expect
30 it("should return a 4 element array initialized to an identity quaternion", function() { expect(result).toBeEqualish([0, 0, 0, 1]); });
35 it("should return a 4 element array initialized to the values in quatA", function() { expect(result).toBeEqualish(quatA); });
40 it("should return a 4 element array initialized to the values passed", function() { expect(result).toBeEqualish([1, 2, 3, 4]); });
45 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3, 4]); });
46 it("should return out", function() { expect(result).toBe(out); });
51 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3, 4]); });
52 it("should return out", function() { expect(result).toBe(out); });
57 it("should place values into out", function() { expect(result).toBeEqualish([0, 0, 0, 1]); });
58 it("should return out", function() { expect(result).toBe(out); });
63 it("should place values into out", function() { expect(result).toBeEqualish([0.707106, 0, 0, 0.707106]); });
64 it("should return out", function() { expect(result).toBe(out); });
71 it("should place values into out", function() { expect(out).toBeEqualish([6, 8, 10, 12]); });
72 it("should return out", function() { expect(result).toBe(out); });
73 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
74 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
80 it("should place values into quatA", function() { expect(quatA).toBeEqualish([6, 8, 10, 12]); });
81 it("should return quatA", function() { expect(result).toBe(quatA); });
82 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
88 it("should place values into quatB", function() { expect(quatB).toBeEqualish([6, 8, 10, 12]); });
89 it("should return quatB", function() { expect(result).toBe(quatB); });
90 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
95 it("should have an alias called 'mul'", function() { expect(quat.mul).toEqual(quat.multiply); });
100 it("should place values into out", function() { expect(out).toBeEqualish([24, 48, 48, -6]); });
101 it("should return out", function() { expect(result).toBe(out); });
102 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
103 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
109 it("should place values into quatA", function() { expect(quatA).toBeEqualish([24, 48, 48, -6]); });
110 it("should return quatA", function() { expect(result).toBe(quatA); });
111 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
117 it("should place values into quatB", function() { expect(quatB).toBeEqualish([24, 48, 48, -6]); });
118 it("should return quatB", function() { expect(result).toBe(quatB); });
119 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
127 it("should place values into out", function() { expect(out).toBeEqualish([2, 4, 6, 8]); });
128 it("should return out", function() { expect(result).toBe(out); });
129 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
135 it("should place values into quatA", function() { expect(quatA).toBeEqualish([2, 4, 6, 8]); });
136 it("should return quatA", function() { expect(result).toBe(quatA); });
141 it("should have an alias called 'len'", function() { expect(quat.len).toEqual(quat.length); });
145 it("should return the length", function() { expect(result).toBeCloseTo(5.477225); });
149 it("should have an alias called 'sqrLen'", function() { expect(quat.sqrLen).toEqual(quat.squaredLength); });
153 it("should return the squared length", function() { expect(result).toEqual(30); });
162 it("should place values into out", function() { expect(out).toBeEqualish([1, 0, 0, 0]); });
163 it("should return out", function() { expect(result).toBe(out); });
164 it("should not modify quatA", function() { expect(quatA).toBeEqualish([5, 0, 0, 0]); });
170 it("should place values into quatA", function() { expect(quatA).toBeEqualish([1, 0, 0, 0]); });
171 it("should return quatA", function() { expect(result).toBe(quatA); });
179 it("should place values into out", function() { expect(out).toBeEqualish([3, 4, 5, 6]); });
180 it("should return out", function() { expect(result).toBe(out); });
181 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
182 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
188 it("should place values into quatA", function() { expect(quatA).toBeEqualish([3, 4, 5, 6]); });
189 it("should return quatA", function() { expect(result).toBe(quatA); });
190 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
196 it("should place values into quatB", function() { expect(quatB).toBeEqualish([3, 4, 5, 6]); });
197 it("should return quatB", function() { expect(result).toBe(quatB); });
198 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
206 it("should place values into out", function() { expect(out).toBeEqualish([3, 4, 5, 6]); });
207 it("should return out", function() { expect(result).toBe(out); });
208 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
209 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
215 it("should place values into quatA", function() { expect(quatA).toBeEqualish([3, 4, 5, 6]); });
216 it("should return quatA", function() { expect(result).toBe(quatA); });
217 it("should not modify quatB", function() { expect(quatB).toBeEqualish([5, 6, 7, 8]); });
223 it("should place values into quatB", function() { expect(quatB).toBeEqualish([3, 4, 5, 6]); });
224 it("should return quatB", function() { expect(result).toBe(quatB); });
225 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
235 it("should place values into out", function() { expect(out).toBeEqualish([-0.033333, -0.066666, -0.1, 0.133333]); });
236 it("should return out", function() { expect(result).toBe(out); });
237 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
243 it("should place values into quatA", function() { expect(quatA).toBeEqualish([-0.033333, -0.066666, -0.1, 0.133333]); });
244 it("should return quatA", function() { expect(result).toBe(quatA); });
252 it("should place values into out", function() { expect(out).toBeEqualish([-1, -2, -3, 4]); });
253 it("should return out", function() { expect(result).toBe(out); });
254 it("should not modify quatA", function() { expect(quatA).toBeEqualish([1, 2, 3, 4]); });
260 it("should place values into quatA", function() { expect(quatA).toBeEqualish([-1, -2, -3, 4]); });
261 it("should return quatA", function() { expect(result).toBe(quatA); });
268 it("should return a string representation of the quaternion", function() { expect(result).toEqual("quat(1, 2, 3, 4)"); });