filmout_display/test/state_test.cpp

22 lines
540 B
C++
Raw Normal View History

#include <iostream>
#include "state.hpp"
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() {
State state;
//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();
}