aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es6-set/test/ext/copy.js
blob: 84fe912a36f73591a7f80ca4e50f3ac4a3b5643b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

var toArray = require('es5-ext/array/to-array')
  , Set     = require('../../');

module.exports = function (t, a) {
	var content = ['raz', 2, true], set = new Set(content), copy;

	copy = t.call(set);
	a.not(copy, set, "Copy");
	a.deep(toArray(copy), content, "Content");
};