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/080_allowedmoves/allowedmoves_tests.c | 31 ------------------------------ 1 file changed, 31 deletions(-) delete mode 100644 test/080_allowedmoves/allowedmoves_tests.c (limited to 'test/080_allowedmoves/allowedmoves_tests.c') diff --git a/test/080_allowedmoves/allowedmoves_tests.c b/test/080_allowedmoves/allowedmoves_tests.c deleted file mode 100644 index aa6bda7..0000000 --- a/test/080_allowedmoves/allowedmoves_tests.c +++ /dev/null @@ -1,31 +0,0 @@ -#include "../test.h" - -bool allowedmoves(size_t n, const uint8_t [n]); - -static char *moves[] = { - "U", "U2", "U'", - "D", "D2", "D'", - "R", "R2", "R'", - "L", "L2", "L'", - "F", "F2", "F'", - "B", "B2", "B'", -}; - -void run(void) { - char movestr[STRLENMAX]; - uint8_t m[100]; - int n, i, j; - - fgets(movestr, STRLENMAX, stdin); - n = atoi(movestr); - - for (i = 0; i < n; i++) { - fgets(movestr, STRLENMAX, stdin); - movestr[strcspn(movestr, "\n")] = 0; - for (j = 0; j < 18; j++) - if (!strcmp(movestr, moves[j])) - m[i] = j; - } - - printf("%s\n", allowedmoves(n, m) ? "true" : "false"); -} -- cgit v1.3