aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/logical_operators.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-01-24 01:43:01 +0900
committernsfisis <nsfisis@gmail.com>2026-01-24 01:43:01 +0900
commitc780cbb6acd0e0526f2d305138190392bdc8cdd7 (patch)
treedf1edba6eb5778a00e1f4c8a5051414d5bb37e71 /tests/logical_operators.sh
parentd179d944c0633d3aa2420009335791b115f67052 (diff)
downloadducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.tar.gz
ducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.tar.zst
ducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.zip
refactor: organize test files
Diffstat (limited to 'tests/logical_operators.sh')
-rw-r--r--tests/logical_operators.sh67
1 files changed, 0 insertions, 67 deletions
diff --git a/tests/logical_operators.sh b/tests/logical_operators.sh
deleted file mode 100644
index b4332e5..0000000
--- a/tests/logical_operators.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-cat <<'EOF' > expected
-foo
-EOF
-test_diff <<'EOF'
-int printf();
-
-int foo() {
- printf("foo\n");
- return 0;
-}
-
-int bar() {
- printf("bar\n");
- return 1;
-}
-
-int main() {
- if (foo() && bar()) {
- printf("baz\n");
- }
-
- return 0;
-}
-EOF
-
-cat <<'EOF' > expected
-foo
-bar
-baz
-EOF
-test_diff <<'EOF'
-int printf();
-
-int foo() {
- printf("foo\n");
- return 0;
-}
-
-int bar() {
- printf("bar\n");
- return 1;
-}
-
-int main() {
- if (foo() || bar()) {
- printf("baz\n");
- }
-
- return 0;
-}
-EOF
-
-cat <<'EOF' > expected
-0
-1
-0
-EOF
-test_diff <<'EOF'
-int printf();
-
-int main() {
- printf("%d\n", !1);
- printf("%d\n", !0);
- printf("%d\n", !23);
- return 0;
-}
-EOF