summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 11:56:07 +0000
committerAndrew Tridgell <tridge@samba.org>2005-07-20 11:56:07 +0000
commit0a3a2d2498ed299d0178c6add24ced3e237ba578 (patch)
treebe8917a4017750c33b4baa6bc38aa31bf6fe375c
parentb3d3f25fc09804838060e7d95be6cb1c5918fbb3 (diff)
downloadsamba-0a3a2d2498ed299d0178c6add24ced3e237ba578.tar.gz
samba-0a3a2d2498ed299d0178c6add24ced3e237ba578.tar.xz
samba-0a3a2d2498ed299d0178c6add24ced3e237ba578.zip
r8652: added a test for the boolean bug just fixed
-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 4d66a475df4..0c1cecb486e 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();