(index, expected, ...args)
| 196 | print(" initial check"); |
| 197 | |
| 198 | function checkTableFunc(index, expected, ...args) { |
| 199 | let f = table.get(index); |
| 200 | print(" table[" + index + "] = " + f); |
| 201 | result = f(...args); |
| 202 | print(" -> expect " + expected + ", got " + result); |
| 203 | assertEquals(expected, result); |
| 204 | } |
| 205 | |
| 206 | checkTableFunc(0, 5, 1, 4); |
| 207 | checkTableFunc(1, 9, 8); |
no test coverage detected