Skip to content

Commit

Permalink
Added a testcase for monthShortAsString() functions (#2215)
Browse files Browse the repository at this point in the history
* Added a testcase for monthShortAsString() functions

* Update MonthShortAsString.cfc
  • Loading branch information
cfmitrah authored Sep 8, 2023
1 parent 7328bb6 commit 442977d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/functions/MonthShortAsString.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {
function run( testResults , testBox ) {
describe( title = "Testcase for monthShortAsString() function", body = function() {
it( title = "Checking monthShortAsString() function", body = function( currentSpec ) {
expect(monthShortAsString(1, "english (india)")).toBe('Jan');
expect(monthShortAsString(2, "albanian")).toBe('shk');
expect(monthShortAsString(monthNumber=4, locale="english (united kingdom)")).toBe('Apr');
});
})
}
}

0 comments on commit 442977d

Please sign in to comment.