Sha256: f3e7cb0b6f76ab11e60e8d602108820d4ad097632806a0d90f8966f1ab1cc114

Contents?: true

Size: 584 Bytes

Versions: 32

Compression:

Stored size: 584 Bytes

Contents

var uniqs = require('./');
var util = require('util');
var assert = require('assert');

var foo = { foo: 23 };

[
  [ [[2, 1, 1], [2, 3, 3, 4], [4, 3, 2]], [2, 1, 3, 4] ],
  [ [3, 2, 2, [1, 1, 2]], [3, 2, 1] ],
  [ [[2, 2, 3, "a", 3, 1, foo, foo, "a" ]], [ 2, 3, "a", 1, foo ] ],
  [ [23], [23] ],
  [ [], [] ],
  [ [[]], [] ],
  [ [[null], null], [null] ]
]
.forEach(function(t) {
  var args = t[0].map(JSON.stringify);
  assert.deepEqual(uniqs.apply(this, t[0]), t[1],
    util.format('✘  uniqs(%s) !== %j', args, t[1])
  );
  console.log('✔  uniqs(%s) == %j', args, t[1]);
});

Version data entries

32 entries across 31 versions & 11 rubygems

Version Path
ezii-os-5.2.1 node_modules/uniqs/test.js
ezii-os-2.0.1 node_modules/uniqs/test.js
ezii-os-1.1.0 node_modules/uniqs/test.js
ezii-os-1.0.0 node_modules/uniqs/test.js
ezii-os-0.0.0.1.0 node_modules/uniqs/test.js
ezii-os-0.0.0.0.1 node_modules/uniqs/test.js
optimacms-0.4.3 spec/dummy/node_modules/uniqs/test.js
optimacms-0.4.2 spec/dummy/node_modules/uniqs/test.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/uniqs/test.js
locomotivecms-3.4.0 app/javascript/node_modules/uniqs/test.js
cortex-0.1.3 spec/dummy/node_modules/uniqs/test.js
lanes-0.8.0 node_modules/uniqs/test.js