1 var test = require("tap").test
3 var some = require("../some.js")
5 test("some() array base case", function (t) {
6 some([], failer, function (error, match) {
7 t.ifError(error, "ran successfully")
9 t.notOk(match, "nothing to find, so nothing found")
14 function failer(value, cb) {
15 cb(new Error("test should never have been called"))
19 test("some() arguments arraylike base case", function (t) {
23 some(arguments, failer, function (error, match) {
24 t.ifError(error, "ran successfully")
26 t.notOk(match, "nothing to find, so nothing found")
31 function failer(value, cb) {
32 cb(new Error("test should never have been called"))