From 086a06fe3d84ac8b2e74c824e05f9d23f0b292ab Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 22 Dec 2025 18:07:06 +0100 Subject: Added tests for copy_co, renamed some tests --- test/077_copy_edges/00_solved_scrambled.in | 2 -- test/077_copy_edges/00_solved_scrambled.out | 1 - test/077_copy_edges/copy_edges_tests.c | 25 ------------------------- 3 files changed, 28 deletions(-) delete mode 100644 test/077_copy_edges/00_solved_scrambled.in delete mode 100644 test/077_copy_edges/00_solved_scrambled.out delete mode 100644 test/077_copy_edges/copy_edges_tests.c (limited to 'test/077_copy_edges') 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 @@ -ABCDEFGH=ABCDEFGHIJKL=A -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 @@ -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 @@ -#include "../test.h" - -void copy_edges(cube_t *, cube_t); - -void run(void) { - char str[STRLENMAX]; - oriented_cube_t c1, c2; - - fgets(str, STRLENMAX, stdin); - c1 = readcube(str); - - fgets(str, STRLENMAX, stdin); - c2 = readcube(str); - - copy_edges(&c1.cube, c2.cube); - - if (iserror(c1)) { - printf("Error setting EO\n"); - } else if (!isconsistent(c1)) { - printf("Setting EO resulted in inconsistent cube\n"); - } else { - writecube(c1, NISSY_SIZE_CUBE, str); - printf("%s\n", str); - } -} -- cgit v1.3