From 0cb7bbe43e6714191bbe6403587a2561bbcb5fa9 Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Thu, 28 Sep 2023 16:24:40 +0530 Subject: [PATCH] Added the testcase in lambda expressions for LDEV-4709 --- test/tickets/LDEV4709.cfc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/tickets/LDEV4709.cfc diff --git a/test/tickets/LDEV4709.cfc b/test/tickets/LDEV4709.cfc new file mode 100644 index 0000000000..a50b40c22b --- /dev/null +++ b/test/tickets/LDEV4709.cfc @@ -0,0 +1,13 @@ +component extends = "org.lucee.cfml.test.LuceeTestCase" { + + function run( testResults, testBox ){ + describe( "Testcase for LDEV-4709", function(){ + it( title="Checking lambda expressions with isclosure() function", body=function( currentSpec ) { + udf = () => { return "foo"; }; + expect (isClosure(udf)).toBe(true); + udf = function(){ return "foo"; }; + expect (isClosure(udf)).toBe(true); + }); + }); + } +} \ No newline at end of file