summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-15 20:24:01 +0200
committernea <nea@nea.moe>2023-08-15 20:24:01 +0200
commit54b0f2ea841d2ce3895713415481271aa3034b30 (patch)
tree401775e9ce327506546fa614e79decb667ab1aa4 /test
parentd1f49743a0a00a1156272d174e8b6b5c4bb9acec (diff)
downloadnealisp-54b0f2ea841d2ce3895713415481271aa3034b30.tar.gz
nealisp-54b0f2ea841d2ce3895713415481271aa3034b30.tar.bz2
nealisp-54b0f2ea841d2ce3895713415481271aa3034b30.zip
Add support for hex literals
Diffstat (limited to 'test')
-rw-r--r--test/res/test.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/res/test.lisp b/test/res/test.lisp
index b5a9f65..39c6d82 100644
--- a/test/res/test.lisp
+++ b/test/res/test.lisp
@@ -30,3 +30,9 @@
((test.assert-eq (hash.get funnyhash :tesst3) nil))
))
+(test.test "Hex literals" (seq
+ ((test.assert-eqd 0x0 0 0.0001))
+ ((test.assert-eqd 0xFF 255 0.0001))
+ ((test.assert-eqd 0xFFFFFFFF 4294967295 0.0001))
+ ))
+