From d7e17ffdbdcbc8eb4340c539a10e1493f220ecee Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Thu, 5 Oct 2023 18:42:31 +0530 Subject: [PATCH] Added a testcase for isArray() function --- test/functions/isArray.cfc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/functions/isArray.cfc diff --git a/test/functions/isArray.cfc b/test/functions/isArray.cfc new file mode 100644 index 0000000000..dfdd4985e5 --- /dev/null +++ b/test/functions/isArray.cfc @@ -0,0 +1,12 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + public function run( testResults, testBox ) { + describe( title="Testcase for isArray() function", body=function() { + it(title="Checking the isArray() function", body=function( currentSpec ) { + expect(isArray(arrayNew(1))).toBeTrue(); + expect(isArray([])).toBeTrue(); + expect(isArray(true)).toBeFalse(); + expect(isArray("array")).toBeFalse(); + }); + }); + } +} \ No newline at end of file