From fecdee6f630d325b266af862333147f745767499 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Wed, 7 May 2008 12:11:41 +0200 Subject: [PATCH] More unit tests for Object.isHash. --- CHANGELOG | 2 ++ test/unit/base_test.js | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index d5b5bef..1d11283 100644 --- a/CHANGELOG +++ b/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) diff --git a/test/unit/base_test.js b/test/unit/base_test.js index a3c631f..6624cac 100644 --- a/test/unit/base_test.js +++ b/test/unit/base_test.js @@ -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() {