mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Initial commit
This commit is contained in:
11
node_modules/uniq/test/test.js
generated
vendored
Normal file
11
node_modules/uniq/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
})
|
Reference in New Issue
Block a user