diff options
Diffstat (limited to 'js/scripting-lang/baba-yaga-c/tests/02_arithmetic_operations.txt')
-rw-r--r-- | js/scripting-lang/baba-yaga-c/tests/02_arithmetic_operations.txt | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/js/scripting-lang/baba-yaga-c/tests/02_arithmetic_operations.txt b/js/scripting-lang/baba-yaga-c/tests/02_arithmetic_operations.txt deleted file mode 100644 index d4c0648..0000000 --- a/js/scripting-lang/baba-yaga-c/tests/02_arithmetic_operations.txt +++ /dev/null @@ -1,31 +0,0 @@ -/* Unit Test: Arithmetic Operations */ -/* Tests: All arithmetic operators and precedence */ - -/* Basic arithmetic */ -a : 10; -b : 3; -sum : a + b; -diff : a - b; -product : a * b; -quotient : a / b; -moduloResult : a % b; -powerResult : a ^ b; - -/* Test results */ -..assert sum = 13; -..assert diff = 7; -..assert product = 30; -..assert quotient = 3.3333333333333335; -..assert moduloResult = 1; -..assert powerResult = 1000; - -/* Complex expressions with parentheses */ -complex1 : (5 + 3) * 2; -complex2 : ((10 - 2) * 3) + 1; -complex3 : (2 ^ 3) % 5; - -..assert complex1 = 16; -..assert complex2 = 25; -..assert complex3 = 3; - -..out "Arithmetic operations test completed"; \ No newline at end of file |