]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es6-iterator/test/#/chain.js
a414c66d78f44f7bb46949a76cff637e13c1e5a4
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");