aboutsummaryrefslogtreecommitdiff
path: root/test/010_math_permsign/permsgn_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-04 17:09:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-04 17:09:55 +0200
commit518d98ad5f9eec0cf4124375bdbb84d1296b3f3f (patch)
tree467b2b0387f23a0b379cf428c6883937ec18c134 /test/010_math_permsign/permsgn_tests.c
parent425eee24421bf0a19c7e0199d2e3ecba3318c8f4 (diff)
downloadnissy-core-518d98ad5f9eec0cf4124375bdbb84d1296b3f3f.tar.gz
nissy-core-518d98ad5f9eec0cf4124375bdbb84d1296b3f3f.zip
(almost) added getcube
Diffstat (limited to 'test/010_math_permsign/permsgn_tests.c')
-rw-r--r--test/010_math_permsign/permsgn_tests.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/010_math_permsign/permsgn_tests.c b/test/010_math_permsign/permsgn_tests.c
deleted file mode 100644
index 04975db..0000000
--- a/test/010_math_permsign/permsgn_tests.c
+++ /dev/null
@@ -1,20 +0,0 @@
1#include "../test.h"
2
3int permsign(uint8_t *, int);
4
5void run(void) {
6 char str[STRLENMAX];
7 uint8_t a[100];
8 int n, i, p;
9
10 fgets(str, STRLENMAX, stdin);
11 n = atoi(str);
12
13 for (i = 0; i < n; i++) {
14 fgets(str, STRLENMAX, stdin);
15 a[i] = atoi(str);
16 }
17
18 p = permsign(a, n);
19 printf("%d\n", p);
20}

Generated with cgit - Back to sebastiano.tronto.net