aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-11 13:22:02 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:06:21 +0900
commitfd7d82869eb42d086174ec02938b49e4f233c319 (patch)
tree326ae533e90594f0caef833ca71b38ad895346d3 /tests
parentfc55b5f89b5974f627657c730bfd6b7d01609eae (diff)
downloadducc-fd7d82869eb42d086174ec02938b49e4f233c319.tar.gz
ducc-fd7d82869eb42d086174ec02938b49e4f233c319.tar.zst
ducc-fd7d82869eb42d086174ec02938b49e4f233c319.zip
feat: implement '*=', '/=' and '%=' operators
Diffstat (limited to 'tests')
-rw-r--r--tests/041.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/041.sh b/tests/041.sh
index b4bb21e..d409158 100644
--- a/tests/041.sh
+++ b/tests/041.sh
@@ -13,6 +13,12 @@ cat <<'EOF' > expected
2
1
0
+
+56088
+
+24
+
+3
EOF
bash ../../test_diff.sh <<'EOF'
int printf();
@@ -27,6 +33,18 @@ int main() {
printf("%d\n", i);
}
+ int x = 123;
+ x *= 456;
+ printf("\n%d\n", x);
+
+ int y = 120;
+ y /= 5;
+ printf("\n%d\n", y);
+
+ int z = 17;
+ z %= 7;
+ printf("\n%d\n", z);
+
return 0;
}
EOF