diff options
Diffstat (limited to 'test/077_copy_edges')
| -rw-r--r-- | test/077_copy_edges/00_solved_scrambled.in | 2 | ||||
| -rw-r--r-- | test/077_copy_edges/00_solved_scrambled.out | 1 | ||||
| -rw-r--r-- | test/077_copy_edges/copy_edges_tests.c | 25 |
3 files changed, 0 insertions, 28 deletions
diff --git a/test/077_copy_edges/00_solved_scrambled.in b/test/077_copy_edges/00_solved_scrambled.in deleted file mode 100644 index 38c1566..0000000 --- a/test/077_copy_edges/00_solved_scrambled.in +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | ABCDEFGH=ABCDEFGHIJKL=A | ||
| 2 | CILVXGMR=FKbGIDSXBJAU=A | ||
diff --git a/test/077_copy_edges/00_solved_scrambled.out b/test/077_copy_edges/00_solved_scrambled.out deleted file mode 100644 index 0d38603..0000000 --- a/test/077_copy_edges/00_solved_scrambled.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=FKbGIDSXBJAU=A | ||
diff --git a/test/077_copy_edges/copy_edges_tests.c b/test/077_copy_edges/copy_edges_tests.c deleted file mode 100644 index f3b0589..0000000 --- a/test/077_copy_edges/copy_edges_tests.c +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | void copy_edges(cube_t *, cube_t); | ||
| 4 | |||
| 5 | void run(void) { | ||
| 6 | char str[STRLENMAX]; | ||
| 7 | oriented_cube_t c1, c2; | ||
| 8 | |||
| 9 | fgets(str, STRLENMAX, stdin); | ||
| 10 | c1 = readcube(str); | ||
| 11 | |||
| 12 | fgets(str, STRLENMAX, stdin); | ||
| 13 | c2 = readcube(str); | ||
| 14 | |||
| 15 | copy_edges(&c1.cube, c2.cube); | ||
| 16 | |||
| 17 | if (iserror(c1)) { | ||
| 18 | printf("Error setting EO\n"); | ||
| 19 | } else if (!isconsistent(c1)) { | ||
| 20 | printf("Setting EO resulted in inconsistent cube\n"); | ||
| 21 | } else { | ||
| 22 | writecube(c1, NISSY_SIZE_CUBE, str); | ||
| 23 | printf("%s\n", str); | ||
| 24 | } | ||
| 25 | } | ||
