From 11832f72224b4643eb7bbc96eb1c8851c1469a3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Jul 2005 11:56:07 +0000 Subject: r8652: added a test for the boolean bug just fixed (This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d) --- testprogs/ejs/bugs.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'testprogs') 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(); -- cgit