MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

deps/v8/tools/compare-table-gen.js:14–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14function test() {
15 for (var i = 0; i < values.length; i++) {
16 for (var j = 0; j < values.length; j++) {
17 var a = values[i];
18 var b = values[j];
19 var x = expected[i][j];
20 assertEquals(x, func(a,b));
21 assertEquals(x, left_funcs[i](b));
22 assertEquals(x, right_funcs[j](a));
23 }
24 }
25
26 var result = matrix();
27 for (var i = 0; i < values.length; i++) {
28 for (var j = 0; j < values.length; j++) {
29 assertEquals(expected[i][j], result[i][j]);
30 }
31 }
32}
33
34function expr(infix, a, cmp, b) {
35 return infix ? a + " " + cmp + " " + b : cmp + "(" + a + ", " + b + ")";

Callers

nothing calls this directly

Calls 3

assertEqualsFunction · 0.50
funcFunction · 0.50
matrixFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…