21 lines
528 B
C++
21 lines
528 B
C++
|
#include <iostream>
|
||
|
#include "../src/state.h"
|
||
|
|
||
|
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() {
|
||
|
//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();
|
||
|
}
|