aboutsummaryrefslogtreecommitdiff
path: root/test/bytes.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-05 15:34:01 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-05 15:34:01 -0500
commit3d9e562e2cc6141ea8c5c66477c036404a868ecd (patch)
treec55887c29175ef87f3dc42ef9d6568e537f567e6 /test/bytes.tm
parenta8a35ea688b07a6cd3e342ad75e045b7433d294b (diff)
Add byte hex tests
Diffstat (limited to 'test/bytes.tm')
-rw-r--r--test/bytes.tm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bytes.tm b/test/bytes.tm
index be6d1cdd..b312c308 100644
--- a/test/bytes.tm
+++ b/test/bytes.tm
@@ -6,3 +6,11 @@ func main():
>> Byte(0xFF)
= Byte(0xFF)
+
+ >> b := Byte(0x0F)
+ >> b:hex()
+ = "0F"
+ >> b:hex(prefix=yes)
+ = "0x0F"
+ >> b:hex(uppercase=no)
+ = "0f"