From a37181b1c2ae6251bba75d5ed7a896d47a26f961 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 30 Mar 2024 19:50:45 +0100 Subject: Improved testing, added more data to cocsep table --- test/100_gendata_cocsep/gendata_cocsep_tests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/100_gendata_cocsep/gendata_cocsep_tests.c') diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c index 19dfa9f..36dd5ce 100644 --- a/test/100_gendata_cocsep/gendata_cocsep_tests.c +++ b/test/100_gendata_cocsep/gendata_cocsep_tests.c @@ -3,12 +3,16 @@ size_t gendata_cocsep(void *); int main(void) { - uint32_t buf[300000]; + uint32_t buf[300000], i; size_t result; result = gendata_cocsep(buf); printf("%zu\n", result); + printf("Classes: %" PRIu32 "\n", buf[result/4-12]); + printf("Max value: %" PRIu32 "\n", buf[result/4-11]); + for (i = 0; i < 10; i++) + printf("%" PRIu32 ": %" PRIu32 "\n", i, buf[result/4-10+i]); return 0; } -- cgit v1.3