summaryrefslogtreecommitdiff
path: root/test/old/test-duplicate-input.c
blob: 8d1b88f0d1e5c469f28851ef36aff6e8cfae8e34 (plain)
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;
}