diff options
Diffstat (limited to '')
| -rw-r--r-- | test/090_tables_readwrite/00_table.in | 1 | ||||
| -rw-r--r-- | test/090_tables_readwrite/00_table.out | 1 | ||||
| -rw-r--r-- | test/090_tables_readwrite/tables_readwrite_tests.c | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/test/090_tables_readwrite/00_table.in b/test/090_tables_readwrite/00_table.in index a35f13a..f286968 100644 --- a/test/090_tables_readwrite/00_table.in +++ b/test/090_tables_readwrite/00_table.in | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | Test solver | 1 | Test solver |
| 2 | 2 | ||
| 3 | 0 | ||
| 3 | 512 | 4 | 512 |
| 4 | 100000000000 | 5 | 100000000000 |
| 5 | 12345678912345 | 6 | 12345678912345 |
diff --git a/test/090_tables_readwrite/00_table.out b/test/090_tables_readwrite/00_table.out index a35f13a..f286968 100644 --- a/test/090_tables_readwrite/00_table.out +++ b/test/090_tables_readwrite/00_table.out | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | Test solver | 1 | Test solver |
| 2 | 2 | ||
| 3 | 0 | ||
| 3 | 512 | 4 | 512 |
| 4 | 100000000000 | 5 | 100000000000 |
| 5 | 12345678912345 | 6 | 12345678912345 |
diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index b062460..f3162ea 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | typedef struct { | 7 | typedef struct { |
| 8 | char solver[INFO_SOLVER_STRLEN]; | 8 | char solver[INFO_SOLVER_STRLEN]; |
| 9 | uint64_t type; | ||
| 9 | uint64_t infosize; | 10 | uint64_t infosize; |
| 10 | uint64_t fullsize; | 11 | uint64_t fullsize; |
| 11 | uint64_t hash; | 12 | uint64_t hash; |
| @@ -39,6 +40,7 @@ tableinfo_t test_readinfo(void) { | |||
| 39 | 40 | ||
| 40 | fgets(emptyline, 2, stdin); | 41 | fgets(emptyline, 2, stdin); |
| 41 | 42 | ||
| 43 | ret.type = readn(); | ||
| 42 | ret.infosize = readn(); | 44 | ret.infosize = readn(); |
| 43 | ret.fullsize = readn(); | 45 | ret.fullsize = readn(); |
| 44 | ret.hash = readn(); | 46 | ret.hash = readn(); |
| @@ -62,6 +64,7 @@ void test_writeinfo(tableinfo_t info) { | |||
| 62 | printf("%s\n", info.solver); | 64 | printf("%s\n", info.solver); |
| 63 | printf("\n"); | 65 | printf("\n"); |
| 64 | 66 | ||
| 67 | printf("%" PRIu64 "\n", info.type); | ||
| 65 | printf("%" PRIu64 "\n", info.infosize); | 68 | printf("%" PRIu64 "\n", info.infosize); |
| 66 | printf("%" PRIu64 "\n", info.fullsize); | 69 | printf("%" PRIu64 "\n", info.fullsize); |
| 67 | printf("%" PRIu64 "\n", info.hash); | 70 | printf("%" PRIu64 "\n", info.hash); |
