Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
ACF returns an array only when the 5th parameter is passed otherwise it will return just a struct.
  • Loading branch information
Yamaha32088 authored May 18, 2018
1 parent 3f961e1 commit 6fb0f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tickets/LDEV1682.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

it(title="Checking REFind() returns struct with matching value", body = function( currentSpec ) {
var testString = "I'm testing RE expression {%1%} test Letter";
var result = refind("{%\d%}", testString, 1 , true);
var result = refind("{%\d%}", testString, 1 , true, "all");
expect(isArray(result)).toBe(true);
if(isArray(result)){
expect(structkeyList(result[1])).toBe("MATCH,LEN,POS");
Expand Down

0 comments on commit 6fb0f4e

Please sign in to comment.