diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-17 08:54:44 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-17 08:54:44 +0200 |
| commit | 270e5b0444f67781856bf80db51650af9cb89b0c (patch) | |
| tree | 1f895ca8fdbf256dcdf550dd0a28ca99993efc08 /test/100_gendata_cocsep | |
| parent | 2d0ab15ac1f81c76cb6bb31bbdad3d2ee339e062 (diff) | |
| download | nissy-core-270e5b0444f67781856bf80db51650af9cb89b0c.tar.gz nissy-core-270e5b0444f67781856bf80db51650af9cb89b0c.zip | |
Renamed tests to make space for more coordinate tests
Diffstat (limited to 'test/100_gendata_cocsep')
| -rw-r--r-- | test/100_gendata_cocsep/00_all.in | 0 | ||||
| -rw-r--r-- | test/100_gendata_cocsep/00_all.out | 13 | ||||
| -rw-r--r-- | test/100_gendata_cocsep/gendata_cocsep_tests.c | 27 |
3 files changed, 0 insertions, 40 deletions
diff --git a/test/100_gendata_cocsep/00_all.in b/test/100_gendata_cocsep/00_all.in deleted file mode 100644 index e69de29..0000000 --- a/test/100_gendata_cocsep/00_all.in +++ /dev/null | |||
diff --git a/test/100_gendata_cocsep/00_all.out b/test/100_gendata_cocsep/00_all.out deleted file mode 100644 index 82eb6c2..0000000 --- a/test/100_gendata_cocsep/00_all.out +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | 1120256 | ||
| 2 | Classes: 3393 | ||
| 3 | Max value: 9 | ||
| 4 | 0: 1 | ||
| 5 | 1: 6 | ||
| 6 | 2: 63 | ||
| 7 | 3: 468 | ||
| 8 | 4: 3068 | ||
| 9 | 5: 15438 | ||
| 10 | 6: 53814 | ||
| 11 | 7: 71352 | ||
| 12 | 8: 8784 | ||
| 13 | 9: 96 | ||
diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c deleted file mode 100644 index c1eef77..0000000 --- a/test/100_gendata_cocsep/gendata_cocsep_tests.c +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | #define BUF_SIZE 2000000 | ||
| 4 | |||
| 5 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); | ||
| 6 | int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); | ||
| 7 | |||
| 8 | void run(void) { | ||
| 9 | unsigned char buf[BUF_SIZE]; | ||
| 10 | uint32_t i; | ||
| 11 | uint64_t selfsim[COCSEP_CLASSES]; | ||
| 12 | cube_t rep[COCSEP_CLASSES]; | ||
| 13 | size_t result; | ||
| 14 | tableinfo_t info; | ||
| 15 | |||
| 16 | result = gendata_cocsep(buf, selfsim, rep); | ||
| 17 | if (readtableinfo(BUF_SIZE, buf, &info) != NISSY_OK) { | ||
| 18 | printf("Error reading info from table\n"); | ||
| 19 | return; | ||
| 20 | } | ||
| 21 | |||
| 22 | printf("%zu\n", result); | ||
| 23 | printf("Classes: %" PRIu64 "\n", info.classes); | ||
| 24 | printf("Max value: %" PRIu8 "\n", info.maxvalue); | ||
| 25 | for (i = 0; i < 10; i++) | ||
| 26 | printf("%" PRIu32 ": %" PRIu64 "\n", i, info.distribution[i]); | ||
| 27 | } | ||
