aboutsummaryrefslogtreecommitdiff
path: root/test/011_io_SRC/io_SRC_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-10 23:51:20 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-10 23:51:20 +0200
commit0032089b5c7dedf057c60fcee17cbdd2b0f8bb87 (patch)
tree85cbf344b3ba69c0ac2fcc47fda098909799e8c4 /test/011_io_SRC/io_SRC_tests.c
parent2edc8c01fba711f4410279b59c784a43cf2dde41 (diff)
downloadnissy-core-0032089b5c7dedf057c60fcee17cbdd2b0f8bb87.tar.gz
nissy-core-0032089b5c7dedf057c60fcee17cbdd2b0f8bb87.zip
Added more complete test for SRC_write; renamed tests for clarity
Diffstat (limited to 'test/011_io_SRC/io_SRC_tests.c')
-rw-r--r--test/011_io_SRC/io_SRC_tests.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/011_io_SRC/io_SRC_tests.c b/test/011_io_SRC/io_SRC_tests.c
deleted file mode 100644
index f454b6f..0000000
--- a/test/011_io_SRC/io_SRC_tests.c
+++ /dev/null
@@ -1,28 +0,0 @@
1#include <stdbool.h>
2#include <stdint.h>
3#include <stdio.h>
4
5#include "../../src/cube.h"
6
7#define STRLENMAX 10000
8
9int main() {
10 char *c, str[STRLENMAX];
11 cube_t cube;
12
13 for (c = str; (*c = getchar()) != EOF; c++) ;
14 *c = '\0';
15
16 cube = readcube(H48, str);
17
18 if (iserror(cube)) {
19 printf("Error reading cube\n");
20 } else if (!issolvable(cube)) {
21 printf("Cube is not solvable\n");
22 } else {
23 writecube(SRC, cube, str);
24 printf("%s\n", str);
25 }
26
27 return 0;
28}

Generated with cgit - Back to sebastiano.tronto.net