From 7103b88b9d550e2230235a080d13bd331bc09542 Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Wed, 23 Aug 2023 20:26:36 +0530 Subject: [PATCH] Added a testcase for monthAsString() function --- test/functions/monthAsString.cfc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/functions/monthAsString.cfc diff --git a/test/functions/monthAsString.cfc b/test/functions/monthAsString.cfc new file mode 100644 index 0000000000..af9db9a508 --- /dev/null +++ b/test/functions/monthAsString.cfc @@ -0,0 +1,13 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + function run( testResults , testBox ) { + describe( title = "Testcase for monthAsString() function", body = function() { + it( title = "Checking monthAsString() function", body = function( currentSpec ) { + expect(monthAsString(1, "english (india)")).toBe('January'); + expect(monthAsString(2, "albanian")).toBe('shkurt'); + + expect(monthAsString(monthNumber=3, locale="english (australia)")).toBe('March'); + expect(monthAsString(monthNumber=4, locale="english (united kingdom)")).toBe('April'); + }); + }); + } +} \ No newline at end of file