summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 11:56:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:50 -0500
commit11832f72224b4643eb7bbc96eb1c8851c1469a3c (patch)
tree07c7f847b92a36b7e02cc91db457695934513207 /testprogs
parent5e9988708f30ce093ab0f48ebb02787c9e418331 (diff)
downloadsamba-11832f72224b4643eb7bbc96eb1c8851c1469a3c.tar.gz
samba-11832f72224b4643eb7bbc96eb1c8851c1469a3c.tar.bz2
samba-11832f72224b4643eb7bbc96eb1c8851c1469a3c.zip
r8652: added a test for the boolean bug just fixed
(This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d)
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/ejs/bugs.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/testprogs/ejs/bugs.js b/testprogs/ejs/bugs.js
index 4d66a475df..0c1cecb486 100644
--- a/testprogs/ejs/bugs.js
+++ b/testprogs/ejs/bugs.js
@@ -128,6 +128,22 @@ function reservedbug()
}
+/****************************************
+demo incorrect handling of boolean functions
+status: SUBMITTED
+*****************************************/
+function no()
+{
+ return false;
+}
+
+function boolbug()
+{
+ assert(false == no());
+ assert(!no());
+}
+
+
/* run the tests */
arraybug();
argsbug("one", "two", "three");
@@ -135,4 +151,5 @@ recursebug();
exprbug();
fnbug(callback);
reservedbug();
+boolbug();
objbug();