aboutsummaryrefslogtreecommitdiff
path: root/test/021_io_B32_write
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-11 12:05:24 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-11 12:05:24 +0200
commitb4d33513bd44c82426ef9e3c6daf5b8046672514 (patch)
treedb64d441059897974d270614cd1ad22d15fc8e56 /test/021_io_B32_write
parentc89c5a1832354d656757c5aff49018d0313838e0 (diff)
downloadnissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.tar.gz
nissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.zip
Finished refactor
Diffstat (limited to '')
-rw-r--r--test/021_io_B32_write/00_solved.in1
-rw-r--r--test/021_io_B32_write/00_solved.out (renamed from test/020_io_B32_read_write/01_solved.in)0
-rw-r--r--test/021_io_B32_write/01_F.in1
-rw-r--r--test/021_io_B32_write/01_F.out (renamed from test/020_io_B32_read_write/02_F.in)0
-rw-r--r--test/021_io_B32_write/02_scrambled.in1
-rw-r--r--test/021_io_B32_write/02_scrambled.out (renamed from test/020_io_B32_read_write/03_scrambled.in)0
-rw-r--r--test/021_io_B32_write/io_B32_read_tests.c (renamed from test/020_io_B32_read_write/io_B32_tests.c)9
7 files changed, 9 insertions, 3 deletions
diff --git a/test/021_io_B32_write/00_solved.in b/test/021_io_B32_write/00_solved.in
new file mode 100644
index 0000000..dff224d
--- /dev/null
+++ b/test/021_io_B32_write/00_solved.in
@@ -0,0 +1 @@
UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_B32_read_write/01_solved.in b/test/021_io_B32_write/00_solved.out
index e1df94b..e1df94b 100644
--- a/test/020_io_B32_read_write/01_solved.in
+++ b/test/021_io_B32_write/00_solved.out
diff --git a/test/021_io_B32_write/01_F.in b/test/021_io_B32_write/01_F.in
new file mode 100644
index 0000000..e805af8
--- /dev/null
+++ b/test/021_io_B32_write/01_F.in
@@ -0,0 +1 @@
FL1 UB0 DB0 FR1 UR0 UL0 DL0 DR0 UF1 DF1 BL0 BR0 UFL1 UBL0 DFR1 DBR0 DFL2 UBR0 UFR2 DBL0
diff --git a/test/020_io_B32_read_write/02_F.in b/test/021_io_B32_write/01_F.out
index 1677251..1677251 100644
--- a/test/020_io_B32_read_write/02_F.in
+++ b/test/021_io_B32_write/01_F.out
diff --git a/test/021_io_B32_write/02_scrambled.in b/test/021_io_B32_write/02_scrambled.in
new file mode 100644
index 0000000..6a05bbc
--- /dev/null
+++ b/test/021_io_B32_write/02_scrambled.in
@@ -0,0 +1 @@
FL0 DB0 UB1 FR0 UR0 DF0 UF0 BR1 UL1 BL1 DL0 DR0 DFR1 UFR1 UBR1 UFL2 DBR2 DFL0 DBL2 UBL0
diff --git a/test/020_io_B32_read_write/03_scrambled.in b/test/021_io_B32_write/02_scrambled.out
index ed442fe..ed442fe 100644
--- a/test/020_io_B32_read_write/03_scrambled.in
+++ b/test/021_io_B32_write/02_scrambled.out
diff --git a/test/020_io_B32_read_write/io_B32_tests.c b/test/021_io_B32_write/io_B32_read_tests.c
index 1953453..3ff81b1 100644
--- a/test/020_io_B32_read_write/io_B32_tests.c
+++ b/test/021_io_B32_write/io_B32_read_tests.c
@@ -1,12 +1,15 @@
1#include "../test.h" 1#include "../test.h"
2 2
3int main(void) { 3int main(void) {
4 char str[STRLENMAX]; 4 char str[STRLENMAX], *aux;
5 cube_t cube; 5 cube_t cube;
6 6
7 fgets(str, STRLENMAX, stdin); 7 aux = str;
8 while (fgets(aux, STRLENMAX, stdin) != NULL)
9 while (*aux != '\n')
10 aux++;
8 11
9 cube = readcube("B32", str); 12 cube = readcube("H48", str);
10 13
11 if (iserror(cube)) { 14 if (iserror(cube)) {
12 printf("Error reading cube\n"); 15 printf("Error reading cube\n");

Generated with cgit - Back to sebastiano.tronto.net