This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/uniq/test/test.js

11 lines
330 B
JavaScript
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
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()
})