r8652: added a test for the boolean bug just fixed
authorAndrew Tridgell <tridge@samba.org>
Wed, 20 Jul 2005 11:56:07 +0000 (11:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:50 +0000 (13:29 -0500)
(This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d)

testprogs/ejs/bugs.js

index 4d66a475df4fb5b2667889cf81556498cbf66d67..0c1cecb486ebb117ed2a52fefbc36f8a94109452 100644 (file)
@@ -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();