Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
330 bytes
|
Line | |
---|
1 | var unique = require("../uniq.js")
|
---|
2 |
|
---|
3 | require("tape")("unique", function(t) {
|
---|
4 |
|
---|
5 | t.equals(unique([1,1,2,3,5,5,7]).join(), [1,2,3,5,7].join())
|
---|
6 | t.equals(unique([]).join(), [].join())
|
---|
7 | t.equals(unique([1,1,1]).join(), [1].join())
|
---|
8 | t.equals(unique([1,1,1,2,2,2], function(a,b) { return (a^b)&1 }).join(), [2,1].join())
|
---|
9 |
|
---|
10 | t.end()
|
---|
11 | }) |
---|
Note:
See
TracBrowser
for help on using the repository browser.