Skip to content

Commit

Permalink
Merge pull request #1454 from Dahlgren/bugfix/shuffle-test
Browse files Browse the repository at this point in the history
Fix shuffle test
  • Loading branch information
commy2 committed May 17, 2021
2 parents 72d5c2a + a9ac6b7 commit 6e94a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/arrays/test_shuffle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ TEST_OP(count _result,==,count _original,_fn);
TEST_OP(_x,in,_original,_fn);
} forEach _result;

// Result will be empty array because the function expects an array as the first param (test throws a param error)
_original = [1, 2, 3];
_result = _original call CBA_fnc_shuffle;
TEST_OP(count _result,==,1,_fn);
TEST_OP(_result,isEqualTo,[],_fn);

_original = [];
_result = [_original] call CBA_fnc_shuffle;
Expand Down

0 comments on commit 6e94a90

Please sign in to comment.