Skip to content

Commit

Permalink
Update test_position.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 17, 2023
1 parent aa21617 commit 7b3bb3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/common/test_position.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ _result = _value call CBA_fnc_getPos;
TEST_TRUE(_result isEqualTo EXPECTED,_funcName);

////////////////////////////////////////////////////////////////////////////////////////////////////

#undef EXPECTED
#define EXPECTED [1,2,0] // Pos 3D

_value = EXPECTED;
Expand All @@ -50,7 +50,7 @@ _value set [0,-1];
TEST_TRUE(_result isEqualTo EXPECTED,_funcName);

////////////////////////////////////////////////////////////////////////////////////////////////////

#undef EXPECTED
#define EXPECTED [1,2] // Pos 2D

_value = EXPECTED;
Expand All @@ -62,7 +62,7 @@ _value set [0,-1];
TEST_TRUE(_result isEqualTo EXPECTED,_funcName);

////////////////////////////////////////////////////////////////////////////////////////////////////

#undef EXPECTED
#define EXPECTED [1,1,0] //Pos nearest to [0,0,0]

_value = [[0,0,0], [[10,10,0],[1,1,0], [5,5,0]]];
Expand All @@ -71,7 +71,7 @@ _result = _value call CBA_fnc_getNearest;
TEST_TRUE(_result isEqualTo EXPECTED,_funcName);

////////////////////////////////////////////////////////////////////////////////////////////////////

#undef EXPECTED
#define EXPECTED [[1,1,0], [5,5,0]] //Pos within distance 10

_value = [[0,0,0], [[30,30,0],[1,1,0], [5,5,0]], 10];
Expand Down

0 comments on commit 7b3bb3f

Please sign in to comment.