diff --git a/GUI/CMakeLists.txt b/GUI/CMakeLists.txt index 56e7944..95d0397 100644 --- a/GUI/CMakeLists.txt +++ b/GUI/CMakeLists.txt @@ -10,6 +10,7 @@ set(gui_SRCS mainwindow.cpp misc.cpp extensions.cpp + tests.cpp host/host.cc host/textthread.cc ${RESOURCE_FILES} diff --git a/GUI/tests.cpp b/GUI/tests.cpp new file mode 100644 index 0000000..96be56d --- /dev/null +++ b/GUI/tests.cpp @@ -0,0 +1,14 @@ +#include "extensions.h" +#include "misc.h" + +static int TESTS = [] +{ + assert(ParseCode("/HQ-c*C:C*1C@4AA:gdi.dll:GetTextOutA")); + assert(ParseCode("/HB4@0")); + assert(ParseCode("/RS*10@44")); + assert(!ParseCode("HQ@4")); + assert(!ParseCode("/RW@44")); + assert(!ParseCode("/HWG@33")); + + return 0; +}(); \ No newline at end of file