3 var Iterator = require('../../');
5 module.exports = function (t, a) {
6 var i1 = new Iterator(['raz', 'dwa', 'trzy'])
7 , i2 = new Iterator(['cztery', 'pięć', 'sześć'])
8 , i3 = new Iterator(['siedem', 'osiem', 'dziewięć'])
10 , iterator = t.call(i1, i2, i3);
12 a.deep(iterator.next(), { done: false, value: 'raz' }, "#1");
13 a.deep(iterator.next(), { done: false, value: 'dwa' }, "#2");
14 a.deep(iterator.next(), { done: false, value: 'trzy' }, "#3");
15 a.deep(iterator.next(), { done: false, value: 'cztery' }, "#4");
16 a.deep(iterator.next(), { done: false, value: 'pięć' }, "#5");
17 a.deep(iterator.next(), { done: false, value: 'sześć' }, "#6");
18 a.deep(iterator.next(), { done: false, value: 'siedem' }, "#7");
19 a.deep(iterator.next(), { done: false, value: 'osiem' }, "#8");
20 a.deep(iterator.next(), { done: false, value: 'dziewięć' }, "#9");
21 a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
22 a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");