More unit tests for Object.isHash.
This commit is contained in:
parent
206a4c824f
commit
fecdee6f63
|
@ -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)
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue