From fce05ff1ade846f00dea5578cb65fe6d12cf3b0f Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Tue, 5 Dec 2023 20:04:40 +0530 Subject: [PATCH 1/2] Added a testcase in min() function. --- test/functions/minute.cfc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/functions/minute.cfc diff --git a/test/functions/minute.cfc b/test/functions/minute.cfc new file mode 100644 index 0000000000..721331233d --- /dev/null +++ b/test/functions/minute.cfc @@ -0,0 +1,11 @@ +component extends="org.lucee.cfml.test.LuceeTestCase"{ + function run( testResults , testBox ) { + describe( title="Test suite for minute()", body=function() { + it(title="checking minute() function", body = function( currentSpec ) { + dt = createdatetime(2023,12,25,5,30,25); + assertEquals(30,minute(dt)); + assertEquals(30,dt.minute()); + }); + }); + } +} \ No newline at end of file From a261486e9df8f093ba1c45bd9310e861c998b82b Mon Sep 17 00:00:00 2001 From: Saravanamuthu Aka CF Mitrah Date: Wed, 6 Dec 2023 10:45:06 +0530 Subject: [PATCH 2/2] Update minute.cfc --- test/functions/minute.cfc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functions/minute.cfc b/test/functions/minute.cfc index 721331233d..105fef495d 100644 --- a/test/functions/minute.cfc +++ b/test/functions/minute.cfc @@ -1,11 +1,11 @@ -component extends="org.lucee.cfml.test.LuceeTestCase"{ +component extends="org.lucee.cfml.test.LuceeTestCase" { function run( testResults , testBox ) { - describe( title="Test suite for minute()", body=function() { - it(title="checking minute() function", body = function( currentSpec ) { + describe( title = "Test suite for minute()", body = function() { + it( title = "checking minute() function", body = function( currentSpec ) { dt = createdatetime(2023,12,25,5,30,25); assertEquals(30,minute(dt)); assertEquals(30,dt.minute()); }); }); } -} \ No newline at end of file +}