aboutsummaryrefslogtreecommitdiff
path: root/test.hgn
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-07-22 21:25:21 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-07-22 21:25:21 +0200
commit86532befde8205b440ae0d630fa8feb94afe27da (patch)
tree06b41a90b3ed009f4155c3475fcf4eee19028142 /test.hgn
parent7f86e0dc92670dd5da34cd22c36aba18fa58ec6d (diff)
downloadhuginn-86532befde8205b440ae0d630fa8feb94afe27da.tar.gz
move testing source code to own file
Diffstat (limited to 'test.hgn')
-rw-r--r--test.hgn15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.hgn b/test.hgn
new file mode 100644
index 0000000..2aec1a8
--- /dev/null
+++ b/test.hgn
@@ -0,0 +1,15 @@
+let x = 10
+let y = 0
+print(x > y)
+while y < 3 {
+ x = x + x
+ y = y + 1
+}
+if x {
+ # let x = read_int(0)
+ # print(18446744073709551615)
+ x = x + x
+} else {
+ x = 69
+}
+print(x)