aboutsummaryrefslogtreecommitdiff
path: root/test/120_gendata_eo
diff options
context:
space:
mode:
Diffstat (limited to 'test/120_gendata_eo')
-rw-r--r--test/120_gendata_eo/00_all.in0
-rw-r--r--test/120_gendata_eo/00_all.out12
-rw-r--r--test/120_gendata_eo/gendata_eo_tests.c38
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 @@
11536
20: 1
31: 2
42: 25
53: 202
64: 620
75: 900
86: 285
97: 13
108: 0
119: 0
1210: 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/*
2Pruning table values (from nissy):
30: 1
41: 2
52: 25
63: 202
74: 620
85: 900
96: 285
107: 13
11*/
12
13#include "../test.h"
14
15#define ISIZE 512
16#define FULLSIZE (ISIZE + 1024)
17
18unsigned char buf[FULLSIZE];
19
20long long gendata_coord_dispatch(
21 const char *, unsigned long long, unsigned char *);
22int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *);
23
24void 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}

Generated with cgit - Back to sebastiano.tronto.net