Skip to content

Commit

Permalink
Merge pull request #2216 from MitrahSoft/monthAsString
Browse files Browse the repository at this point in the history
Added a testcase for monthAsString() function
  • Loading branch information
zspitzer authored Sep 8, 2023
2 parents df1835e + 7103b88 commit 7328bb6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/functions/monthAsString.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( 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');
});
});
}
}

0 comments on commit 7328bb6

Please sign in to comment.