From fd7d82869eb42d086174ec02938b49e4f233c319 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 11 Aug 2025 13:22:02 +0900 Subject: feat: implement '*=', '/=' and '%=' operators --- tests/041.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2