(size: number, initWith: number)
| 1 | import CircularQueue from '../src/utils/CircularQueue' |
| 2 | |
| 3 | function createTest(size: number, initWith: number) { |
| 4 | const testQueue = new CircularQueue<string>(size) |
| 5 | for (let index = 0; index < initWith; index++) { |
| 6 | testQueue.push('val:' + (index + 1)) |
| 7 | } |
| 8 | |
| 9 | return testQueue |
| 10 | } |
| 11 | |
| 12 | test('Large Circular Queue', () => { |
| 13 | for (let index = 5; index < 20; index++) { |
no test coverage detected