More unit tests for Object.isHash.

This commit is contained in:
Tobie Langel 2008-05-07 12:11:41 +02:00
parent 206a4c824f
commit fecdee6f63
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* More unit tests for Object.isHash. (Tobie Langel)
* Allow Function#argumentNames to handle line breaks between arguments. (Geoff M. Granum, Tobie Langel) [#63 state:resolved]
* For consistency, add additional optional parameter "context" to Number.prototype.times. (Samuel Lebeau)

View File

@ -193,6 +193,13 @@ new Test.Unit.Runner({
this.assert(Object.isHash($H()));
this.assert(Object.isHash(new Hash()));
this.assert(!Object.isHash({}));
this.assert(!Object.isHash(null));
this.assert(!Object.isHash());
this.assert(!Object.isHash(''));
this.assert(!Object.isHash(2));
this.assert(!Object.isHash(false));
this.assert(!Object.isHash(true));
this.assert(!Object.isHash([]));
},
testObjectIsElement: function() {