diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-29 10:29:27 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-29 10:31:38 +0100 |
| commit | 80ec600701aae54350679bbf5e0ce874c915506e (patch) | |
| tree | 137007693afb0d12b0886990b4bfb6d7278bfa22 /test/04_compose/compose_tests.c | |
| parent | f2dd7feb819fe4a8a4181dd1d04488e31f4b63a1 (diff) | |
| download | nissy-core-80ec600701aae54350679bbf5e0ce874c915506e.tar.gz nissy-core-80ec600701aae54350679bbf5e0ce874c915506e.zip | |
AVX2 compiles, fails all tests; + some renaming
Diffstat (limited to 'test/04_compose/compose_tests.c')
| -rw-r--r-- | test/04_compose/compose_tests.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/04_compose/compose_tests.c b/test/04_compose/compose_tests.c deleted file mode 100644 index a4a5f00..0000000 --- a/test/04_compose/compose_tests.c +++ /dev/null | |||
| @@ -1,30 +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 | |||
| 9 | int main() { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | cube_t c1, c2, c3; | ||
| 12 | |||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | c1 = readcube(H48, str); | ||
| 15 | fgets(str, STRLENMAX, stdin); | ||
| 16 | c2 = readcube(H48, str); | ||
| 17 | |||
| 18 | c3 = compose(c1, c2); | ||
| 19 | |||
| 20 | if (iserror(c3)) { | ||
| 21 | printf("Error composing cubes\n"); | ||
| 22 | } else if (!issolvable(c3)) { | ||
| 23 | printf("Composed cube is not solvable\n"); | ||
| 24 | } else { | ||
| 25 | writecube(H48, c3, str); | ||
| 26 | printf("%s\n", str); | ||
| 27 | } | ||
| 28 | |||
| 29 | return 0; | ||
| 30 | } | ||
