From eb00d983e291e19141e859bc99917166b7c97858 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 08:30:23 -0700 Subject: [PATCH] Feat: Add test for conditional (ternary) expressions --- test/src/conditionals.hi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/src/conditionals.hi diff --git a/test/src/conditionals.hi b/test/src/conditionals.hi new file mode 100644 index 0000000..4c39304 --- /dev/null +++ b/test/src/conditionals.hi @@ -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)