diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-03-30 19:50:45 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-03-30 19:50:45 +0100 |
| commit | a37181b1c2ae6251bba75d5ed7a896d47a26f961 (patch) | |
| tree | 51079aea6135d69340393aaab346827fe056b444 /test/100_gendata_cocsep/gendata_cocsep_tests.c | |
| parent | c14e780551c4e7aa88d99b226b12f7cdd7b92527 (diff) | |
| download | nissy-core-a37181b1c2ae6251bba75d5ed7a896d47a26f961.tar.gz nissy-core-a37181b1c2ae6251bba75d5ed7a896d47a26f961.zip | |
Improved testing, added more data to cocsep table
Diffstat (limited to 'test/100_gendata_cocsep/gendata_cocsep_tests.c')
| -rw-r--r-- | test/100_gendata_cocsep/gendata_cocsep_tests.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
| 3 | size_t gendata_cocsep(void *); | 3 | size_t gendata_cocsep(void *); |
| 4 | 4 | ||
| 5 | int main(void) { | 5 | int main(void) { |
| 6 | uint32_t buf[300000]; | 6 | uint32_t buf[300000], i; |
| 7 | size_t result; | 7 | size_t result; |
| 8 | 8 | ||
| 9 | result = gendata_cocsep(buf); | 9 | result = gendata_cocsep(buf); |
| 10 | 10 | ||
| 11 | printf("%zu\n", result); | 11 | printf("%zu\n", result); |
| 12 | printf("Classes: %" PRIu32 "\n", buf[result/4-12]); | ||
| 13 | printf("Max value: %" PRIu32 "\n", buf[result/4-11]); | ||
| 14 | for (i = 0; i < 10; i++) | ||
| 15 | printf("%" PRIu32 ": %" PRIu32 "\n", i, buf[result/4-10+i]); | ||
| 12 | 16 | ||
| 13 | return 0; | 17 | return 0; |
| 14 | } | 18 | } |
