diff options
Diffstat (limited to 'test/081_getcube')
| -rw-r--r-- | test/081_getcube/00_solved_0.in | 4 | ||||
| -rw-r--r-- | test/081_getcube/00_solved_0.out | 1 | ||||
| -rw-r--r-- | test/081_getcube/02_scrambled.in | 4 | ||||
| -rw-r--r-- | test/081_getcube/02_scrambled.out | 1 | ||||
| -rw-r--r-- | test/081_getcube/getcube_tests.c | 32 |
5 files changed, 0 insertions, 42 deletions
diff --git a/test/081_getcube/00_solved_0.in b/test/081_getcube/00_solved_0.in deleted file mode 100644 index 44e0be8..0000000 --- a/test/081_getcube/00_solved_0.in +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | 0 | ||
| 2 | 0 | ||
| 3 | 0 | ||
| 4 | 0 | ||
diff --git a/test/081_getcube/00_solved_0.out b/test/081_getcube/00_solved_0.out deleted file mode 100644 index 5aa6ba7..0000000 --- a/test/081_getcube/00_solved_0.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=ABCDEFGHIJKL=A | ||
diff --git a/test/081_getcube/02_scrambled.in b/test/081_getcube/02_scrambled.in deleted file mode 100644 index b24bfbf..0000000 --- a/test/081_getcube/02_scrambled.in +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | 367124500 | ||
| 2 | 450 | ||
| 3 | 30807 | ||
| 4 | 562 | ||
diff --git a/test/081_getcube/02_scrambled.out b/test/081_getcube/02_scrambled.out deleted file mode 100644 index 4dfa7b7..0000000 --- a/test/081_getcube/02_scrambled.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | OINUTCXB=JCRIEDAbVaGH=A | ||
diff --git a/test/081_getcube/getcube_tests.c b/test/081_getcube/getcube_tests.c deleted file mode 100644 index 07e621e..0000000 --- a/test/081_getcube/getcube_tests.c +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | cube_t getcube(int64_t, int64_t, int64_t, int64_t); | ||
| 4 | |||
| 5 | void run(void) { | ||
| 6 | char str[STRLENMAX]; | ||
| 7 | oriented_cube_t cube; | ||
| 8 | int64_t ep, eo, cp, co; | ||
| 9 | |||
| 10 | fgets(str, STRLENMAX, stdin); | ||
| 11 | ep = atoll(str); | ||
| 12 | fgets(str, STRLENMAX, stdin); | ||
| 13 | eo = atoll(str); | ||
| 14 | fgets(str, STRLENMAX, stdin); | ||
| 15 | cp = atoll(str); | ||
| 16 | fgets(str, STRLENMAX, stdin); | ||
| 17 | co = atoll(str); | ||
| 18 | |||
| 19 | cube = (oriented_cube_t) { | ||
| 20 | .cube = getcube(ep, eo, cp, co), | ||
| 21 | .orientation = 0 | ||
| 22 | }; | ||
| 23 | |||
| 24 | if (iserror(cube)) { | ||
| 25 | printf("Error cube\n"); | ||
| 26 | } else if (!isconsistent(cube)) { | ||
| 27 | printf("Inconsistent cube\n"); | ||
| 28 | } else { | ||
| 29 | writecube(cube, NISSY_SIZE_CUBE, str); | ||
| 30 | printf("%s\n", str); | ||
| 31 | } | ||
| 32 | } | ||
