From 3c8f8c2e60cd089679cf5da5160baaf35977b220 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 Sep 2024 09:58:17 +0200 Subject: Added next table offset to tableinfo --- test/090_tables_readwrite/00_table.in | 1 + test/090_tables_readwrite/00_table.out | 1 + test/090_tables_readwrite/tables_readwrite_tests.c | 3 +++ 3 files changed, 5 insertions(+) (limited to 'test/090_tables_readwrite') diff --git a/test/090_tables_readwrite/00_table.in b/test/090_tables_readwrite/00_table.in index 1816242..a35f13a 100644 --- a/test/090_tables_readwrite/00_table.in +++ b/test/090_tables_readwrite/00_table.in @@ -7,6 +7,7 @@ Test solver 2 0 20 +100000000512 100 101 diff --git a/test/090_tables_readwrite/00_table.out b/test/090_tables_readwrite/00_table.out index 1816242..a35f13a 100644 --- a/test/090_tables_readwrite/00_table.out +++ b/test/090_tables_readwrite/00_table.out @@ -7,6 +7,7 @@ Test solver 2 0 20 +100000000512 100 101 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 { uint8_t bits; uint8_t base; uint8_t maxvalue; + uint64_t next; uint64_t distribution[INFO_DISTRIBUTION_LEN]; } tableinfo_t; @@ -45,6 +46,7 @@ tableinfo_t test_readinfo(void) { ret.bits = (uint8_t)readn(); ret.base = (uint8_t)readn(); ret.maxvalue = (uint8_t)readn(); + ret.next = readn(); fgets(emptyline, 2, stdin); @@ -67,6 +69,7 @@ void test_writeinfo(tableinfo_t info) { printf("%" PRIu8 "\n", info.bits); printf("%" PRIu8 "\n", info.base); printf("%" PRIu8 "\n", info.maxvalue); + printf("%" PRIu64 "\n", info.next); printf("\n"); for (i = 0; i < INFO_DISTRIBUTION_LEN; i++) -- cgit v1.3