Lines Matching refs:expect

30         it("should return a 3 element array initialized to 0s", function() { expect(result).toBeEqualish([0, 0, 0]); });
35 it("should return a 3 element array initialized to the values in vecA", function() { expect(result).toBeEqualish(vecA); });
40 it("should return a 3 element array initialized to the values passed", function() { expect(result).toBeEqualish([1, 2, 3]); });
45 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3]); });
46 it("should return out", function() { expect(result).toBe(out); });
51 it("should place values into out", function() { expect(out).toBeEqualish([1, 2, 3]); });
52 it("should return out", function() { expect(result).toBe(out); });
59 it("should place values into out", function() { expect(out).toBeEqualish([5, 7, 9]); });
60 it("should return out", function() { expect(result).toBe(out); });
61 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
62 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
68 it("should place values into vecA", function() { expect(vecA).toBeEqualish([5, 7, 9]); });
69 it("should return vecA", function() { expect(result).toBe(vecA); });
70 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
76 it("should place values into vecB", function() { expect(vecB).toBeEqualish([5, 7, 9]); });
77 it("should return vecB", function() { expect(result).toBe(vecB); });
78 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
83 it("should have an alias called 'sub'", function() { expect(vec3.sub).toEqual(vec3.subtract); });
88 it("should place values into out", function() { expect(out).toBeEqualish([-3, -3, -3]); });
89 it("should return out", function() { expect(result).toBe(out); });
90 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
91 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
97 it("should place values into vecA", function() { expect(vecA).toBeEqualish([-3, -3, -3]); });
98 it("should return vecA", function() { expect(result).toBe(vecA); });
99 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
105 it("should place values into vecB", function() { expect(vecB).toBeEqualish([-3, -3, -3]); });
106 it("should return vecB", function() { expect(result).toBe(vecB); });
107 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
112 it("should have an alias called 'mul'", function() { expect(vec3.mul).toEqual(vec3.multiply); });
117 it("should place values into out", function() { expect(out).toBeEqualish([4, 10, 18]); });
118 it("should return out", function() { expect(result).toBe(out); });
119 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
120 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
126 it("should place values into vecA", function() { expect(vecA).toBeEqualish([4, 10, 18]); });
127 it("should return vecA", function() { expect(result).toBe(vecA); });
128 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
134 it("should place values into vecB", function() { expect(vecB).toBeEqualish([4, 10, 18]); });
135 it("should return vecB", function() { expect(result).toBe(vecB); });
136 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
141 it("should have an alias called 'div'", function() { expect(vec3.div).toEqual(vec3.divide); });
146 it("should place values into out", function() { expect(out).toBeEqualish([0.25, 0.4, 0.5]); });
147 it("should return out", function() { expect(result).toBe(out); });
148 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
149 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
155 it("should place values into vecA", function() { expect(vecA).toBeEqualish([0.25, 0.4, 0.5]); });
156 it("should return vecA", function() { expect(result).toBe(vecA); });
157 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
163 it("should place values into vecB", function() { expect(vecB).toBeEqualish([0.25, 0.4, 0.5]); });
164 it("should return vecB", function() { expect(result).toBe(vecB); });
165 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
175 it("should place values into out", function() { expect(out).toBeEqualish([1, 1, 1]); });
176 it("should return out", function() { expect(result).toBe(out); });
177 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 3, 1]); });
178 it("should not modify vecB", function() { expect(vecB).toBeEqualish([3, 1, 3]); });
184 it("should place values into vecA", function() { expect(vecA).toBeEqualish([1, 1, 1]); });
185 it("should return vecA", function() { expect(result).toBe(vecA); });
186 it("should not modify vecB", function() { expect(vecB).toBeEqualish([3, 1, 3]); });
192 it("should place values into vecB", function() { expect(vecB).toBeEqualish([1, 1, 1]); });
193 it("should return vecB", function() { expect(result).toBe(vecB); });
194 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 3, 1]); });
204 it("should place values into out", function() { expect(out).toBeEqualish([3, 3, 3]); });
205 it("should return out", function() { expect(result).toBe(out); });
206 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 3, 1]); });
207 it("should not modify vecB", function() { expect(vecB).toBeEqualish([3, 1, 3]); });
213 it("should place values into vecA", function() { expect(vecA).toBeEqualish([3, 3, 3]); });
214 it("should return vecA", function() { expect(result).toBe(vecA); });
215 it("should not modify vecB", function() { expect(vecB).toBeEqualish([3, 1, 3]); });
221 it("should place values into vecB", function() { expect(vecB).toBeEqualish([3, 3, 3]); });
222 it("should return vecB", function() { expect(result).toBe(vecB); });
223 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 3, 1]); });
231 it("should place values into out", function() { expect(out).toBeEqualish([2, 4, 6]); });
232 it("should return out", function() { expect(result).toBe(out); });
233 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
239 it("should place values into vecA", function() { expect(vecA).toBeEqualish([2, 4, 6]); });
240 it("should return vecA", function() { expect(result).toBe(vecA); });
245 it("should have an alias called 'dist'", function() { expect(vec3.dist).toEqual(vec3.distance); });
249 it("should return the distance", function() { expect(result).toBeCloseTo(5.196152); });
253 it("should have an alias called 'sqrDist'", function() { expect(vec3.sqrDist).toEqual(vec3.squaredDistance); });
257 it("should return the squared distance", function() { expect(result).toEqual(27); });
261 it("should have an alias called 'len'", function() { expect(vec3.len).toEqual(vec3.length); });
265 it("should return the length", function() { expect(result).toBeCloseTo(3.741657); });
269 it("should have an alias called 'sqrLen'", function() { expect(vec3.sqrLen).toEqual(vec3.squaredLength); });
273 it("should return the squared length", function() { expect(result).toEqual(14); });
280 it("should place values into out", function() { expect(out).toBeEqualish([-1, -2, -3]); });
281 it("should return out", function() { expect(result).toBe(out); });
282 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
288 it("should place values into vecA", function() { expect(vecA).toBeEqualish([-1, -2, -3]); });
289 it("should return vecA", function() { expect(result).toBe(vecA); });
299 it("should place values into out", function() { expect(out).toBeEqualish([1, 0, 0]); });
300 it("should return out", function() { expect(result).toBe(out); });
301 it("should not modify vecA", function() { expect(vecA).toBeEqualish([5, 0, 0]); });
307 it("should place values into vecA", function() { expect(vecA).toBeEqualish([1, 0, 0]); });
308 it("should return vecA", function() { expect(result).toBe(vecA); });
315 it("should return the dot product", function() { expect(result).toEqual(32); });
316 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
317 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
324 it("should place values into out", function() { expect(out).toBeEqualish([-3, 6, -3]); });
325 it("should return out", function() { expect(result).toBe(out); });
326 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
327 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
333 it("should place values into vecA", function() { expect(vecA).toBeEqualish([-3, 6, -3]); });
334 it("should return vecA", function() { expect(result).toBe(vecA); });
335 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
341 it("should place values into vecB", function() { expect(vecB).toBeEqualish([-3, 6, -3]); });
342 it("should return vecB", function() { expect(result).toBe(vecB); });
343 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
351 it("should place values into out", function() { expect(out).toBeEqualish([2.5, 3.5, 4.5]); });
352 it("should return out", function() { expect(result).toBe(out); });
353 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
354 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
360 it("should place values into vecA", function() { expect(vecA).toBeEqualish([2.5, 3.5, 4.5]); });
361 it("should return vecA", function() { expect(result).toBe(vecA); });
362 it("should not modify vecB", function() { expect(vecB).toBeEqualish([4, 5, 6]); });
368 it("should place values into vecB", function() { expect(vecB).toBeEqualish([2.5, 3.5, 4.5]); });
369 it("should return vecB", function() { expect(result).toBe(vecB); });
370 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
389 expect(vecArray).toBeEqualish([
395 it("should return vecArray", function() { expect(result).toBe(vecArray); });
402 expect(vecArray).toBeEqualish([
408 it("should return vecArray", function() { expect(result).toBe(vecArray); });
409 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
416 expect(vecArray).toBeEqualish([
422 it("should return vecArray", function() { expect(result).toBe(vecArray); });
423 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
430 expect(vecArray).toBeEqualish([
436 it("should return vecArray", function() { expect(result).toBe(vecArray); });
437 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
444 expect(vecArray).toBeEqualish([
450 it("should return vecArray", function() { expect(result).toBe(vecArray); });
451 it("should not modify vecA", function() { expect(vecA).toBeEqualish([1, 2, 3]); });
460 expect(vecArray).toBeEqualish([
466 it("should return vecArray", function() { expect(result).toBe(vecArray); });
473 it("should return a string representation of the vector", function() { expect(result).toEqual("vec3(1, 2, 3)"); });