From 270e5b0444f67781856bf80db51650af9cb89b0c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 17 Jul 2025 08:54:44 +0200 Subject: Renamed tests to make space for more coordinate tests --- test/081_getcube/getcube_tests.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 test/081_getcube/getcube_tests.c (limited to 'test/081_getcube/getcube_tests.c') 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 @@ -#include "../test.h" - -cube_t getcube(int64_t, int64_t, int64_t, int64_t); - -void run(void) { - char str[STRLENMAX]; - oriented_cube_t cube; - int64_t ep, eo, cp, co; - - fgets(str, STRLENMAX, stdin); - ep = atoll(str); - fgets(str, STRLENMAX, stdin); - eo = atoll(str); - fgets(str, STRLENMAX, stdin); - cp = atoll(str); - fgets(str, STRLENMAX, stdin); - co = atoll(str); - - cube = (oriented_cube_t) { - .cube = getcube(ep, eo, cp, co), - .orientation = 0 - }; - - if (iserror(cube)) { - printf("Error cube\n"); - } else if (!isconsistent(cube)) { - printf("Inconsistent cube\n"); - } else { - writecube(cube, NISSY_SIZE_CUBE, str); - printf("%s\n", str); - } -} -- cgit v1.3