From e8f1bce4d6277b85d952265dce7b3ab462d9aa22 Mon Sep 17 00:00:00 2001 From: koniifer Date: Tue, 17 Dec 2024 23:22:04 +0000 Subject: [PATCH] update test --- sysdata/programs/test/src/tests/stn/formatters.hb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sysdata/programs/test/src/tests/stn/formatters.hb b/sysdata/programs/test/src/tests/stn/formatters.hb index a955562..2fce6e6 100644 --- a/sysdata/programs/test/src/tests/stn/formatters.hb +++ b/sysdata/programs/test/src/tests/stn/formatters.hb @@ -12,14 +12,6 @@ SubThingy := struct { b: bool, } -a := enum { - Bababa, -} - -opaque := fn(): ?u32 { - return null -} - test := fn(): uint { buffer := memory.request_page(1) log.info(format(Thingy.(-100, -100, .(-math.PI, true)), buffer)) @@ -30,7 +22,8 @@ test := fn(): uint { log.info(format_args(math.LN_2, buffer, .{radix: 16, decimal_digits: 1 << 32})) log.info(format([u8].(1, 2, 3), buffer)) log.info(format(&SubThingy.(0.0, true), buffer)) - log.info(format(opaque(), buffer)) + log.info(format(@as(?u32, null), buffer)) + log.info(format(@as(?u32, 200), buffer)) return 0 } \ No newline at end of file