summaryrefslogtreecommitdiffhomepage
path: root/test/test_samples/test_printf.nc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-29 22:27:52 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-29 22:41:01 +0100
commit0be550520fdd9da1cc996f6d71ab2790a1b2fcb8 (patch)
tree4c6435d61ea12a548257673f74ef77694aab3452 /test/test_samples/test_printf.nc
parent690fa2807e10f10edd20ce971b900457d7504ff3 (diff)
feat: if statement and custom comparaison syntax for nectar.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/test_samples/test_printf.nc')
-rw-r--r--test/test_samples/test_printf.nc8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_samples/test_printf.nc b/test/test_samples/test_printf.nc
index d18c818..c29bb05 100644
--- a/test/test_samples/test_printf.nc
+++ b/test/test_samples/test_printf.nc
@@ -1,9 +1,11 @@
+export main;
+
let main()
{
- if (0x01 <= 0x100)
+ if (0x01 =: 0x01):
{
- return 0x80;
+ return 0;
}
- return 0x0;
+ return 1;
} \ No newline at end of file