add tests

This commit is contained in:
rolux 2012-05-27 23:14:59 +02:00
parent b6411d485a
commit 9d26a4b6c3

View file

@ -57,6 +57,8 @@ Ox.cache = function(fn, options) {
/*@
Ox.identity <f> Returns its first argument
This can be used as a default iterator
> Ox.identity(Infinity)
Infinity
@*/
Ox.identity = function(value) {
return value;
@ -66,6 +68,10 @@ Ox.identity = function(value) {
Ox.noop <f> Returns undefined and calls optional callback without arguments
This can be used as a default iterator in an asynchronous loop, or to
combine a synchronous and an asynchronous code path.
> Ox.noop(1, 2, 3)
undefined
> Ox.noop(1, 2, 3, function() { Ox.test(true, true); })
undefined
@*/
Ox.noop = function() {
var callback = Ox.last(arguments);