hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e7479d15649ad6693c5e33fbe6ee03b57e776b6f
parent 99edd27a4cbefdab5debe6745c4672bb1575d428
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Dec 2023 21:11:31 -0500

hare::parse+test: add labelled compound test

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/+test/expr_test.ha | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/hare/parse/+test/expr_test.ha b/hare/parse/+test/expr_test.ha @@ -105,6 +105,12 @@ "export fn main() void = {\n\tyield void;\n}: int;\n"); }; +@test fn compound() void = { + roundtrip("export fn main() void = :label {\n" + "\tvoid;\n" + "};\n"); +}; + @test fn constant() void = { roundtrip(`export fn main() void = { 2 + (-4 + void) * true / ("hello" << '?');