(container, start, lineX, end)
| 1423 | // Assumes that the first numeric character is the start of an item. |
| 1424 | { |
| 1425 | function checkAlignment(container, start, lineX, end) { |
| 1426 | const lines = util.inspect(container).split('\n'); |
| 1427 | lines.forEach((line, i) => { |
| 1428 | if (i === 0) { |
| 1429 | assert.strictEqual(line, start); |
| 1430 | } else if (i === lines.length - 1) { |
| 1431 | assert.strictEqual(line, end); |
| 1432 | } else { |
| 1433 | let expected = lineX.replace('X', i - 1); |
| 1434 | if (i !== lines.length - 2) |
| 1435 | expected += ','; |
| 1436 | assert.strictEqual(line, expected); |
| 1437 | } |
| 1438 | }); |
| 1439 | } |
| 1440 | |
| 1441 | const bigArray = []; |
| 1442 | for (let i = 0; i < 100; i++) { |
no test coverage detected
searching dependent graphs…