aboutsummaryrefslogtreecommitdiff
path: root/test/090_tables_readwrite/tables_readwrite_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c')
-rw-r--r--test/090_tables_readwrite/tables_readwrite_tests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c
index 97b8ab7..b062460 100644
--- a/test/090_tables_readwrite/tables_readwrite_tests.c
+++ b/test/090_tables_readwrite/tables_readwrite_tests.c
@@ -13,6 +13,7 @@ typedef struct {
13 uint8_t bits; 13 uint8_t bits;
14 uint8_t base; 14 uint8_t base;
15 uint8_t maxvalue; 15 uint8_t maxvalue;
16 uint64_t next;
16 uint64_t distribution[INFO_DISTRIBUTION_LEN]; 17 uint64_t distribution[INFO_DISTRIBUTION_LEN];
17} tableinfo_t; 18} tableinfo_t;
18 19
@@ -45,6 +46,7 @@ tableinfo_t test_readinfo(void) {
45 ret.bits = (uint8_t)readn(); 46 ret.bits = (uint8_t)readn();
46 ret.base = (uint8_t)readn(); 47 ret.base = (uint8_t)readn();
47 ret.maxvalue = (uint8_t)readn(); 48 ret.maxvalue = (uint8_t)readn();
49 ret.next = readn();
48 50
49 fgets(emptyline, 2, stdin); 51 fgets(emptyline, 2, stdin);
50 52
@@ -67,6 +69,7 @@ void test_writeinfo(tableinfo_t info) {
67 printf("%" PRIu8 "\n", info.bits); 69 printf("%" PRIu8 "\n", info.bits);
68 printf("%" PRIu8 "\n", info.base); 70 printf("%" PRIu8 "\n", info.base);
69 printf("%" PRIu8 "\n", info.maxvalue); 71 printf("%" PRIu8 "\n", info.maxvalue);
72 printf("%" PRIu64 "\n", info.next);
70 printf("\n"); 73 printf("\n");
71 74
72 for (i = 0; i < INFO_DISTRIBUTION_LEN; i++) 75 for (i = 0; i < INFO_DISTRIBUTION_LEN; i++)

Generated with cgit - Back to sebastiano.tronto.net