GrimSqueaker / remc2

Recode Binary code of game Magic Carpet2 to C/C++ language(remake MC2 for any platform)
6 stars 0 forks source link

unit tests #42

Open GrimSqueaker opened 3 years ago

GrimSqueaker commented 3 years ago

We should implement unit tests for making sure that all changes keep some of the constraints, like ensure specific sizes of some structures. In the past some changes for examples changed the size of the in-game-savefiles (defined by type_D41A0_BYTESTR_0).

I have started to implement google test in CMake. Maybe this can also be made available to Visual Studio.

GrimSqueaker commented 3 years ago

Maybe let's switch to catch2 instead of gtest, because it is a header-only library. This would allow to compile and run the tests also on Windows without making the CMake setup work on Windows.