2024-04-16 16:25:59 +00:00
|
|
|
#include <iostream>
|
2024-04-20 01:48:14 +00:00
|
|
|
#include "state.hpp"
|
2024-04-16 16:25:59 +00:00
|
|
|
|
|
|
|
void IS_TRUE(string name, bool x) {
|
|
|
|
if (!(x)) {
|
|
|
|
cout << "Failed test " << name << ":" << endl;
|
|
|
|
cout << __FUNCTION__ << " failed on line " << __LINE__ << endl;
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void test_message_in() {
|
2024-04-20 01:48:14 +00:00
|
|
|
State state;
|
2024-04-16 16:25:59 +00:00
|
|
|
//string action_load = "{\"action\" : 0 }";
|
|
|
|
//json msg_data = json::parse(action_load);
|
|
|
|
//MessageIn msgIn(msg_data);
|
|
|
|
//IS_TRUE("parses_action_load", msgIn.getAction() == LOAD);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
test_message_in();
|
|
|
|
}
|