MCPcopy
hub / github.com/greggman/twgl.js / testV3WithDest1

Function testV3WithDest1

test/tests/v3-tests.js:61–71  ·  view source on GitHub ↗
(func, expected)

Source from the content-addressed store, hash-verified

59 }
60
61 function testV3WithDest1(func, expected) {
62 expected = new Float32Array(expected);
63 let d = new Float32Array(3);
64 let c = func(v.slice(), d);
65 assertStrictEqual(c, d);
66 assertEqual(c, expected);
67
68 d = v.slice();
69 c = func(d, d);
70 elementsEqual(c, expected);
71 }
72
73 function testV3WithAndWithoutDest(func, expected, b) {
74 if (Type === Float32Array) {

Callers 1

Calls 3

assertStrictEqualFunction · 0.90
assertEqualFunction · 0.90
elementsEqualFunction · 0.85

Tested by

no test coverage detected