Skip to content

Commit

Permalink
Merge pull request #2193 from MitrahSoft/listQualifiedToArray()_testcase
Browse files Browse the repository at this point in the history
Added a testcase for listQualifiedToArray()
  • Loading branch information
zspitzer authored Jul 25, 2023
2 parents ec18a6c + 66cf31c commit 69a95e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/functions/listQualifiedToArray.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" {
function run( testResults , testBox ) {
describe( "Testcase for listQualifiedToArray()", function() {
it(title = "Checking with listQualifiedToArray()", body = function( currentSpec ) {
var list = "I,love,lucee";
arr = listQualifiedToArray(list);
expect(arr[1]).toBe("I");
expect(arr.len()).toBe(3);
});
it(title = "Checking with listQualifiedToArray()", body = function( currentSpec ) {
var list = "I'love,lucee";
arr = listQualifiedToArray(list, "'");
expect(arr[1]).toBe("I");
expect(arr[2]).toBe("love,lucee");
expect(arr.len()).toBe(2);
});
});
}
}

0 comments on commit 69a95e8

Please sign in to comment.