]> git.r.bdr.sh - rbdr/dotfiles/blob
a414c66d78f44f7bb46949a76cff637e13c1e5a4
[rbdr/dotfiles] /
1 'use strict';
2
3 var Iterator = require('../../');
4
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ęć'])
9
10 , iterator = t.call(i1, i2, i3);
11
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");
23 };