aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/functions.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-15 00:04:23 +0900
committernsfisis <nsfisis@gmail.com>2026-02-15 00:04:23 +0900
commit2009a26e17ad9dbefee3a5ca4339d754e51ef078 (patch)
tree5c311a1a17f40786f53f4a89c5bbbb72402a6b2d /tests/functions.sh
parentef0cb4dbdc1c036f70f94a905cbacae9be5abf5e (diff)
downloadducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.tar.gz
ducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.tar.zst
ducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.zip
refactor: write more tests in C
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index ddae9b2..e15c900 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -107,26 +107,6 @@ int main() {
}
EOF
-test_exit_code 0 <<'EOF'
-#include <stdarg.h>
-#include <helpers.h>
-
-int sum(int n, ...) {
- va_list args;
- va_start(args, n);
- int s = 0;
- for (int i = 0; i < n; ++i) {
- s += va_arg(args, int);
- }
- va_end(args);
- return s;
-}
-
-int main() {
- ASSERT_EQ(400, sum(5, 100, 90, 80, 70, 60));
-}
-EOF
-
# implicit return
# C99: 5.1.2.2.3
test_exit_code 0 <<'EOF'