aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-31 07:03:56 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:06:21 +0900
commit6b1418634534bc3d7f32e63c88a186d030ab31f8 (patch)
tree1ab2bed5716c29bb04c12935cfc39b46bd5443fc /tests
parentf53b6ff29c79b288792da24feb55b7ed9db2ba40 (diff)
downloadducc-6b1418634534bc3d7f32e63c88a186d030ab31f8.tar.gz
ducc-6b1418634534bc3d7f32e63c88a186d030ab31f8.tar.zst
ducc-6b1418634534bc3d7f32e63c88a186d030ab31f8.zip
feat: expand macro recursively
Diffstat (limited to 'tests')
-rw-r--r--tests/073.sh6
-rw-r--r--tests/074.sh6
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/073.sh b/tests/073.sh
index 8dc165e..3bc42af 100644
--- a/tests/073.sh
+++ b/tests/073.sh
@@ -2,6 +2,8 @@ set -e
cat <<'EOF' > expected
main.c
+main.c
+main.c
EOF
cat <<'EOF' > header.h
@@ -14,7 +16,7 @@ bash ../../test_diff.sh <<'EOF'
int printf();
int main() {
printf("%s\n", __FILE__);
- // printf("%s\n", B);
- // printf("%s\n", A);
+ printf("%s\n", B);
+ printf("%s\n", A);
}
EOF
diff --git a/tests/074.sh b/tests/074.sh
index 90b86c6..a4d42ea 100644
--- a/tests/074.sh
+++ b/tests/074.sh
@@ -2,6 +2,8 @@ set -e
cat <<'EOF' > expected
5
+6 6
+7 7
EOF
cat <<'EOF' > header.h
@@ -14,7 +16,7 @@ bash ../../test_diff.sh <<'EOF'
int printf();
int main() {
printf("%d\n", __LINE__);
- // printf("%d\n", B);
- // printf("%d\n", A);
+ printf("%d %d\n", B, B);
+ printf("%d %d\n", A, A);
}
EOF