(b, ...m)
| 365 | |
| 366 | // helper function nonsense |
| 367 | function assert(b, ...m) { |
| 368 | if(!b) { |
| 369 | console.error(/* assert.count, */'ASSERTION FAILED!', ...m) |
| 370 | assert.failed = true |
| 371 | } else { |
| 372 | // console.log(assert.count, 'test passed') |
| 373 | } |
| 374 | |
| 375 | assert.count += 1 |
| 376 | } |
| 377 | assert.count = 0 |
| 378 | |
| 379 | function testSorting(search, ...targets) { |
no outgoing calls
searching dependent graphs…