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/00_all.out | 14 +++++++++++++- test/100_gendata_cocsep/gendata_cocsep_tests.c | 6 +++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/100_gendata_cocsep/00_all.out b/test/100_gendata_cocsep/00_all.out index 37b8c1d..e14b938 100644 --- a/test/100_gendata_cocsep/00_all.out +++ b/test/100_gendata_cocsep/00_all.out @@ -1 +1,13 @@ -1119788 +1119792 +Classes: 3393 +Max value: 9 +0: 1 +1: 6 +2: 63 +3: 468 +4: 3068 +5: 15438 +6: 53814 +7: 71352 +8: 8784 +9: 96 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