(w, h)
| 22 | .setDynamicOutput(true); |
| 23 | |
| 24 | function doAThing(w, h) { |
| 25 | kernel.setOutput([w, h]); |
| 26 | let intermediate = kernel(w); |
| 27 | const array = intermediate.toArray(); |
| 28 | assert.equal(array.length, h); |
| 29 | assert.equal(array[0].length, w); |
| 30 | sumRow.setOutput([h]); |
| 31 | const result = sumRow(intermediate, w); |
| 32 | assert.equal(result.length, h); |
| 33 | assert.equal(result[0].length, undefined); |
| 34 | } |
| 35 | |
| 36 | doAThing(10, 5); |
| 37 | doAThing(3, 2); |
no test coverage detected
searching dependent graphs…