added assert.length

This commit is contained in:
brianc 2010-10-07 19:35:21 -05:00
parent 3768e43e15
commit 90bac87578

View File

@ -11,9 +11,12 @@ assert.same = function(actual, expected) {
};
assert.empty = function(actual) {
assert.equal(actual.length, 0);
assert.length(actual, 0);
};
assert.length = function(actual, expectedLength) {
assert.equal(actual.length, expectedLength);
};
test = function(name, action) {
for(var i = 0; i < test.tabout; i++) {