summaryrefslogtreecommitdiff
path: root/tests/enum-validator-test.c
blob: 92037cff26fc7b234db1b70b7149c26e8028d00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <assert.h>
#include "data/small-server-core.h"

int
main(int argc, char *argv[]) {
	assert(intf_A_foo_is_valid(INTF_A_FOO_FIRST, 1));
	assert(intf_A_foo_is_valid(INTF_A_FOO_FIRST, 2));

	assert(!intf_A_foo_is_valid(INTF_A_FOO_THIRD, 1));
	assert(intf_A_foo_is_valid(INTF_A_FOO_THIRD, 2));

	assert(intf_A_foo_is_valid(INTF_A_FOO_NEGATIVE, 2));
}