mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-05 14:10:32 -04:00
refactored serde between waypoint number and 26 radix string . (#122)
This commit is contained in:
parent
cace9efd2a
commit
f0f2439be0
6 changed files with 74 additions and 70 deletions
13
UnitTest/Waypoint_Test.cpp
Normal file
13
UnitTest/Waypoint_Test.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "stdafx.h"
|
||||
#include "Helpers.h"
|
||||
|
||||
TEST(WaypointTest, SerdeTest)
|
||||
{
|
||||
//"DJ", "CL";
|
||||
ASSERT_EQ(WaypointToString(113), "DJ");
|
||||
ASSERT_EQ(StringToWaypoint("DJ"), 113);
|
||||
|
||||
ASSERT_EQ(WaypointToString(0), "A");
|
||||
ASSERT_EQ(StringToWaypoint("A"), 0);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue