wallet-core/node_modules/es6-set/test/ext/copy.js

13 lines
291 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
'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");
};