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
optimacms-0.1.61 spec/dummy/node_modules/uniqs/test.js
disco_app-0.18.0 test/dummy/node_modules/uniqs/test.js
disco_app-0.18.2 test/dummy/node_modules/uniqs/test.js
disco_app-0.16.1 test/dummy/node_modules/uniqs/test.js
disco_app-0.15.2 test/dummy/node_modules/uniqs/test.js
disco_app-0.18.4 test/dummy/node_modules/uniqs/test.js
disco_app-0.18.1 test/dummy/node_modules/uniqs/test.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/uniqs/test.js
disco_app-0.14.0 test/dummy/node_modules/uniqs/test.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/uniqs/test.js
tang-0.2.1 spec/tang_app/node_modules/uniqs/test.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/uniqs/test.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/uniqs/test.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/uniqs/test.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/uniqs/test.js
tang-0.2.0 spec/tang_app/node_modules/uniqs/test.js
tang-0.1.0 spec/tang_app/node_modules/uniqs/test.js
tang-0.0.9 spec/tang_app/node_modules/uniqs/test.js
enju_library-0.3.8 spec/dummy/node_modules/uniqs/test.js
jester-data-8.0.0 node_modules/uniqs/test.js