From 8d1198ad4573d3e98ee800191348da0ebe152883 Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Fri, 20 Oct 2023 17:47:18 +0530 Subject: [PATCH] Added a testcase in structKeyList() for LDEV4725 --- test/tickets/LDEV4725.cfc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/tickets/LDEV4725.cfc diff --git a/test/tickets/LDEV4725.cfc b/test/tickets/LDEV4725.cfc new file mode 100644 index 00000000000..85176a667fa --- /dev/null +++ b/test/tickets/LDEV4725.cfc @@ -0,0 +1,12 @@ +component extends = "org.lucee.cfml.test.LuceeTestCase" { + + function run( testResults, testBox ){ + describe( "Testcase for LDEV-4725", function(){ + it( title="Checking structKeyList() function", body=function( currentSpec ) { + var numbers = {A: 1,B: 1,C: 1}; + expect(structKeyList(numbers)).toBe("A,B,C"); + expect(numbers.KeyList()).toBe("A,B,C"); + }); + }); + } +} \ No newline at end of file