Skip to content

Commit

Permalink
Added a testcase for wrap() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Oct 24, 2023
1 parent 7a4985d commit b21579a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/functions/wrap.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {
public function run( testResults, testBox ) {
describe( title="Testcase for wrap() function", body=function() {
it(title="Checking the wrap() function", body=function( currentSpec ) {
var string = "Lucee Documentation";
var wrapped_string = wrap(string, 4);

expect(wrapped_string.len()).toBe(23)
expect(wrapped_string).toBe("luce
e
docu
ment
atio
n");

});
});
}
}

0 comments on commit b21579a

Please sign in to comment.