Skip to content

Commit

Permalink
More unit tests for Object.isHash.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed Sep 3, 2008
1 parent 206a4c8 commit fecdee6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -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)
Expand Down
7 changes: 7 additions & 0 deletions test/unit/base_test.js
Expand Up @@ -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() {
Expand Down

0 comments on commit fecdee6

Please sign in to comment.