wallet-core/node_modules/es6-set/test/ext/copy.js
2017-08-14 05:02:09 +02:00

13 lines
291 B
JavaScript

'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");
};