Skip to content

Commit

Permalink
Added the testcase in lambda expressions for LDEV-4709
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Sep 28, 2023
1 parent 83b9b24 commit 0cb7bbe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/tickets/LDEV4709.cfc
Original file line number Diff line number Diff line change
@@ -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);
});
});
}
}

0 comments on commit 0cb7bbe

Please sign in to comment.