1 2 3 4 5 6 7 8 9 10 11 12 13
#include <assert.h> #include "gate.h" #include "parser.h" int main(void) { char test_string[] = "input test\n"; assert(0 == parse_line(test_string)); assert(gate_get_input_by_name("test") != NULL); assert(0 != parse_line(test_string)); assert(gate_get_input_by_name("test") != NULL); return 0; }