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/120_gendata_eo | |
| 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/120_gendata_eo')
| -rw-r--r-- | test/120_gendata_eo/00_all.in | 0 | ||||
| -rw-r--r-- | test/120_gendata_eo/00_all.out | 12 | ||||
| -rw-r--r-- | test/120_gendata_eo/gendata_eo_tests.c | 38 |
3 files changed, 0 insertions, 50 deletions
diff --git a/test/120_gendata_eo/00_all.in b/test/120_gendata_eo/00_all.in deleted file mode 100644 index e69de29..0000000 --- a/test/120_gendata_eo/00_all.in +++ /dev/null | |||
diff --git a/test/120_gendata_eo/00_all.out b/test/120_gendata_eo/00_all.out deleted file mode 100644 index 42e8c66..0000000 --- a/test/120_gendata_eo/00_all.out +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | 1536 | ||
| 2 | 0: 1 | ||
| 3 | 1: 2 | ||
| 4 | 2: 25 | ||
| 5 | 3: 202 | ||
| 6 | 4: 620 | ||
| 7 | 5: 900 | ||
| 8 | 6: 285 | ||
| 9 | 7: 13 | ||
| 10 | 8: 0 | ||
| 11 | 9: 0 | ||
| 12 | 10: 0 | ||
diff --git a/test/120_gendata_eo/gendata_eo_tests.c b/test/120_gendata_eo/gendata_eo_tests.c deleted file mode 100644 index 1b985c3..0000000 --- a/test/120_gendata_eo/gendata_eo_tests.c +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | /* | ||
| 2 | Pruning table values (from nissy): | ||
| 3 | 0: 1 | ||
| 4 | 1: 2 | ||
| 5 | 2: 25 | ||
| 6 | 3: 202 | ||
| 7 | 4: 620 | ||
| 8 | 5: 900 | ||
| 9 | 6: 285 | ||
| 10 | 7: 13 | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include "../test.h" | ||
| 14 | |||
| 15 | #define ISIZE 512 | ||
| 16 | #define FULLSIZE (ISIZE + 1024) | ||
| 17 | |||
| 18 | unsigned char buf[FULLSIZE]; | ||
| 19 | |||
| 20 | long long gendata_coord_dispatch( | ||
| 21 | const char *, unsigned long long, unsigned char *); | ||
| 22 | int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); | ||
| 23 | |||
| 24 | void run(void) { | ||
| 25 | uint32_t i; | ||
| 26 | size_t result; | ||
| 27 | tableinfo_t info; | ||
| 28 | |||
| 29 | result = gendata_coord_dispatch("coord_EO_FB", FULLSIZE, buf); | ||
| 30 | if (readtableinfo(FULLSIZE, buf, &info) != NISSY_OK) { | ||
| 31 | printf("Error reading info from table\n"); | ||
| 32 | return; | ||
| 33 | } | ||
| 34 | |||
| 35 | printf("%zu\n", result); | ||
| 36 | for (i = 0; i <= 10; i++) | ||
| 37 | printf("%" PRIu32 ": %" PRIu64 "\n", i, info.distribution[i]); | ||
| 38 | } | ||
