| 1 |
'use strict'; |
| 2 |
|
| 3 |
module.exports = function (t, a) { |
| 4 |
var queue = t(3); |
| 5 |
|
| 6 |
a(queue.hit('raz'), undefined, "Hit #1"); |
| 7 |
a(queue.hit('raz'), undefined, "Hit #2"); |
| 8 |
a(queue.hit('dwa'), undefined, "Hit #3"); |
| 9 |
a(queue.hit('raz'), undefined, "Hit #4"); |
| 10 |
a(queue.hit('dwa'), undefined, "Hit #5"); |
| 11 |
a(queue.hit('trzy'), undefined, "Hit #6"); |
| 12 |
a(queue.hit('raz'), undefined, "Hit #7"); |
| 13 |
a(queue.hit('dwa'), undefined, "Hit #8"); |
| 14 |
|
| 15 |
a(queue.hit('cztery'), 'trzy', "Overflow #1"); |
| 16 |
a(queue.hit('dwa'), undefined, "Hit #9"); |
| 17 |
|
| 18 |
a(queue.hit('trzy'), 'raz', "Overflow #2"); |
| 19 |
|
| 20 |
a(queue.hit('raz'), 'cztery', "Overflow #3"); |
| 21 |
a(queue.hit('cztery'), 'dwa', "Overflow #4"); |
| 22 |
a(queue.hit('trzy'), undefined, "Hit #10"); |
| 23 |
|
| 24 |
a(queue.hit('dwa'), 'raz', "Overflow #4"); |
| 25 |
a(queue.hit('cztery'), undefined, "Hit #11"); |
| 26 |
|
| 27 |
queue.delete('cztery'); |
| 28 |
a(queue.hit('cztery'), undefined, "Hit #12"); |
| 29 |
}; |