Skip to content

Commit

Permalink
Added a testcase for isArray() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Oct 5, 2023
1 parent 1bd314b commit d7e17ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/functions/isArray.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {
public function run( testResults, testBox ) {
describe( title="Testcase for isArray() function", body=function() {
it(title="Checking the isArray() function", body=function( currentSpec ) {
expect(isArray(arrayNew(1))).toBeTrue();
expect(isArray([])).toBeTrue();
expect(isArray(true)).toBeFalse();
expect(isArray("array")).toBeFalse();
});
});
}
}

0 comments on commit d7e17ff

Please sign in to comment.