hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_examples.sh
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-12 11:41:05 +0200
committerhachem <im@hachem.wtf>2026-10-12 11:41:05 +0200
commit62636576bce8e8121a3d70f63547fae40a52f697 (patch)
tree077dfe4f04235cce63b7abb1b05bb539232ae74a /scripts/test_examples.sh
parentc0f000ea166a24781fcdbf23c080b203cd9b8ed7 (diff)
chore: refactor
Diffstat (limited to 'scripts/test_examples.sh')
-rwxr-xr-xscripts/test_examples.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/scripts/test_examples.sh b/scripts/test_examples.sh
index ab4f184..f76b837 100755
--- a/scripts/test_examples.sh
+++ b/scripts/test_examples.sh
@@ -84,20 +84,20 @@ check()
printf '%s━━ example programs (%s) ━━%s\n' "$bold" "$assembler" "$reset"
-check hello_world "writes a greeting to stdout" examples/hello_world.hdass 0 "Hello, World!"
-check greet "writes a fixed string" examples/greet.hdass 0 "hdass works!"
-check exit_code "exits with a status code" examples/exit_code.hdass 42 ""
-check arithmetic "integer compound-assignment math" examples/arithmetic.hdass 15 ""
-check loop_sum "sums 1..5 with a countdown loop" examples/loop_sum.hdass 15 ""
-check branch "selects the larger of two values" examples/branch.hdass 8 ""
-check call "passes an argument through a proc" examples/call.hdass 21 ""
-check logical "logical register names (r1..r14)" examples/logical.hdass 21 ""
-check mul_div "multiply and non-rax division" examples/mul_div.hdass 8 ""
-check modulo "the modulo operator (%)" examples/modulo.hdass 24 ""
-check load "stores then loads through a pointer" examples/load.hdass 7 ""
-check constants "hex literals and constant folding" examples/constants.hdass 42 ""
-check records "enum values and struct field offsets" examples/records.hdass 42 ""
-check circle "floating-point math on SSE registers" examples/circle.hdass 28 ""
+check hello_world "writes a greeting to stdout" examples/hello_world.hdass 0 "Hello, World!"
+check greet "writes a fixed string" examples/greet.hdass 0 "hdass works!"
+check exit_code "exits with a status code" examples/exit_code.hdass 42 ""
+check arithmetic "integer compound-assignment math" examples/arithmetic.hdass 15 ""
+check loop_sum "sums 1..5 with a countdown loop" examples/loop_sum.hdass 15 ""
+check branch "selects the larger of two values" examples/branch.hdass 8 ""
+check call "passes an argument through a proc" examples/call.hdass 21 ""
+check logical "logical register names (r1..r14)" examples/logical.hdass 21 ""
+check mul_div "multiply and non-rax division" examples/mul_div.hdass 8 ""
+check modulo "the modulo operator (%)" examples/modulo.hdass 24 ""
+check load "stores then loads through a pointer" examples/load.hdass 7 ""
+check constants "hex literals and constant folding" examples/constants.hdass 42 ""
+check records "enum values and struct field offsets" examples/records.hdass 42 ""
+check circle "floating-point math on SSE registers" examples/circle.hdass 28 ""
check fibonacci "prints the first ten Fibonacci numbers" examples/fibonacci.hdass 0 "0
1
1