1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 01:27:31 -04:00
notes/node_modules/uniq/test/test.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

11 lines
330 B
JavaScript

var unique = require("../uniq.js")
require("tape")("unique", function(t) {
t.equals(unique([1,1,2,3,5,5,7]).join(), [1,2,3,5,7].join())
t.equals(unique([]).join(), [].join())
t.equals(unique([1,1,1]).join(), [1].join())
t.equals(unique([1,1,1,2,2,2], function(a,b) { return (a^b)&1 }).join(), [2,1].join())
t.end()
})