Sha256: 28ec215a49afa12767cca8e34be69d9cb1b8e866fbe444c3b103f537b722294b

Contents?: true

Size: 1019 Bytes

Versions: 49

Compression:

Stored size: 1019 Bytes

Contents

'use strict';

var Iterator = require('../../');

module.exports = function (t, a) {
	var i1 = new Iterator(['raz', 'dwa', 'trzy'])
	  , i2 = new Iterator(['cztery', 'pięć', 'sześć'])
	  , i3 = new Iterator(['siedem', 'osiem', 'dziewięć'])

	  , iterator = t.call(i1, i2, i3);

	a.deep(iterator.next(), { done: false, value: 'raz' }, "#1");
	a.deep(iterator.next(), { done: false, value: 'dwa' }, "#2");
	a.deep(iterator.next(), { done: false, value: 'trzy' }, "#3");
	a.deep(iterator.next(), { done: false, value: 'cztery' }, "#4");
	a.deep(iterator.next(), { done: false, value: 'pięć' }, "#5");
	a.deep(iterator.next(), { done: false, value: 'sześć' }, "#6");
	a.deep(iterator.next(), { done: false, value: 'siedem' }, "#7");
	a.deep(iterator.next(), { done: false, value: 'osiem' }, "#8");
	a.deep(iterator.next(), { done: false, value: 'dziewięć' }, "#9");
	a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
	a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
};

Version data entries

49 entries across 19 versions & 7 rubygems

Version Path
guard-sass-lint-0.1.2 node_modules/es6-iterator/test/#/chain.js
guard-sass-lint-0.1.1 node_modules/es6-iterator/test/#/chain.js
lanes-0.8.0 node_modules/es6-iterator/test/#/chain.js
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/es6-iterator/test/#/chain.js
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/es6-iterator/test/#/chain.js
blackboard-3.1.9 lib/site_template/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-set/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/node_modules/es6-iterator/test/#/chain.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-set/node_modules/es6-iterator/test/#/chain.js