aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/valid/integer.milf
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/valid/integer.milf')
-rw-r--r--test-suite/tests/valid/integer.milf18
1 files changed, 18 insertions, 0 deletions
diff --git a/test-suite/tests/valid/integer.milf b/test-suite/tests/valid/integer.milf
new file mode 100644
index 0000000..8362459
--- /dev/null
+++ b/test-suite/tests/valid/integer.milf
@@ -0,0 +1,18 @@
+answer = 42
+neganswer = -42
+
+neg_zero = -0
+pos_zero = +0
+
+# hexadecimal with prefix `0x`
+hex1 = 0xDEADBEEF
+hex2 = 0xdeadbeef
+hex3 = 0xdead_beef
+
+# octal with prefix `0o`
+oct1 = 0o01234567
+oct2 = 0o755 # useful for Unix file permissions
+
+# binary with prefix `0b`
+bin1 = 0b11010110
+