aboutsummaryrefslogtreecommitdiff
path: root/test/001_pieces
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-17 17:39:06 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-17 17:39:30 +0200
commite986713657bc5f9880e91ed49dd9b0d0227f048d (patch)
tree908d371e60546795c4ca1f9a3b67571b964203c5 /test/001_pieces
parent02ce9adf6a9168ec66c322ce9e5a5cb9fe1e60a5 (diff)
downloadnissy-core-e986713657bc5f9880e91ed49dd9b0d0227f048d.tar.gz
nissy-core-e986713657bc5f9880e91ed49dd9b0d0227f048d.zip
Use callback function to log to stderr
Diffstat (limited to 'test/001_pieces')
-rw-r--r--test/001_pieces/pieces_tests.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/001_pieces/pieces_tests.c b/test/001_pieces/pieces_tests.c
index 1ef2fd0..2e6460b 100644
--- a/test/001_pieces/pieces_tests.c
+++ b/test/001_pieces/pieces_tests.c
@@ -2,7 +2,7 @@
2 2
3void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]); 3void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]);
4 4
5int main(void) { 5void run(void) {
6 int i; 6 int i;
7 uint8_t corner[8], edge[12]; 7 uint8_t corner[8], edge[12];
8 char str[STRLENMAX], *aux; 8 char str[STRLENMAX], *aux;
@@ -22,6 +22,4 @@ int main(void) {
22 for (i = 0; i < 12; i++) 22 for (i = 0; i < 12; i++)
23 printf("%" PRIu8 " ", edge[i]); 23 printf("%" PRIu8 " ", edge[i]);
24 printf("\n"); 24 printf("\n");
25
26 return 0;
27} 25}

Generated with cgit - Back to sebastiano.tronto.net