Feat: Add test for conditional (ternary) expressions

This commit is contained in:
2025-09-26 08:30:23 -07:00
parent d1b3e6aaf7
commit eb00d983e2

10
test/src/conditionals.hi Normal file
View File

@@ -0,0 +1,10 @@
a: 10
b: 20
max: (a > b) ? { a } : { b }
_(max)
status: "ok"
(status == "ok") ? { _("Status is OK") }
grade: (max > 15) ? { "A" } : { "B" }
_(grade)