Skip to content

Commit

Permalink
Remove outdated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexanone committed Jan 16, 2021
1 parent fbe2bb7 commit 47c075c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 37 deletions.
4 changes: 0 additions & 4 deletions addons/arrays/test_findMax.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ TEST_TRUE(isNil "_result",_fn);
_result = [1, "not a number", 3, 4, 5] call CBA_fnc_findMax;
TEST_TRUE(isNil "_result",_fn);

// Test invalid array given
_result = "not an array" call CBA_fnc_findMax;
TEST_TRUE(isNil "_result",_fn);

// Test empty array given
_result = [] call CBA_fnc_findMax;
TEST_TRUE(isNil "_result",_fn);
Expand Down
4 changes: 0 additions & 4 deletions addons/arrays/test_findMin.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ TEST_TRUE(isNil "_result",_fn);
_result = [1, "not a number", 3, 4, 5] call CBA_fnc_findMin;
TEST_TRUE(isNil "_result",_fn);

// Test invalid array given
_result = "not an array" call CBA_fnc_findMin;
TEST_TRUE(isNil "_result",_fn);

// Test empty array given
_result = [] call CBA_fnc_findMin;
TEST_TRUE(isNil "_result",_fn);
Expand Down
5 changes: 0 additions & 5 deletions addons/arrays/test_findNil.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@ _result = [] call CBA_fnc_findNil;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return a not found when a non array is given
_result = "not an array" call CBA_fnc_findNil;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

nil;
5 changes: 0 additions & 5 deletions addons/arrays/test_findNull.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@ _result = [] call CBA_fnc_findNull;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return a not found when a non array is given
_result = "not an array" call CBA_fnc_findNull;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

nil;
5 changes: 0 additions & 5 deletions addons/arrays/test_findTypeName.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ _result = [[], "STRING"] call CBA_fnc_findTypeName;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return not found if non array is given
_result = ["not an array", "STRING"] call CBA_fnc_findTypeName;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return not found if parameters are nil
_result = [nil, nil] call CBA_fnc_findTypeName;
_expected = -1;
Expand Down
10 changes: 0 additions & 10 deletions addons/arrays/test_findTypeOf.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ _result = [[], typeOf player] call CBA_fnc_findTypeOf;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return not found, when a non array is passed
_result = ["not an array", typeOf player] call CBA_fnc_findTypeOf;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return not found, when search parameter is not an object or string
_result = [["", player, 5, objNull], 5] call CBA_fnc_findTypeOf;
_expected = -1;
TEST_OP(_result,==,_expected,_fn);

// Return not found, when parameters are nil
_result = [nil, nil] call CBA_fnc_findTypeOf;
_expected = -1;
Expand Down
4 changes: 0 additions & 4 deletions addons/arrays/test_shuffle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ TEST_OP(count _result,==,count _original,_fn);
TEST_OP(_x,in,_original,_fn);
} forEach _result;

_original = [1, 2, 3];
_result = _original call CBA_fnc_shuffle;
TEST_OP(count _result,==,1,_fn);

_original = [];
_result = [_original] call CBA_fnc_shuffle;
TEST_OP(count _result,==,count _original,_fn);
Expand Down

0 comments on commit 47c075c

Please sign in to comment.