aboutsummaryrefslogtreecommitdiff
path: root/test/optionals.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 15:33:47 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 15:33:47 -0400
commite422079fcced744e3a6247aeb12a09a658989072 (patch)
tree393d5e52ba67dcc822ccfa9a812198edda5e735d /test/optionals.tm
parent259c7efcf8c3808d8151d8e15f1167ad2b6f2ca7 (diff)
Add a Byte datatype
Diffstat (limited to 'test/optionals.tm')
-rw-r--r--test/optionals.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index 928587f7..6d7db835 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -21,7 +21,7 @@ func maybe_int(should_i:Bool)->Int?:
func maybe_int64(should_i:Bool)->Int64?:
if should_i:
- return 123_i64
+ return 123[64]
else:
return !Int64
@@ -110,12 +110,12 @@ func main():
!! ...
!! Int64s:
>> yep := maybe_int64(yes)
- = 123_i64?
+ = 123[64]?
>> nope := maybe_int64(no)
= !Int64
>> if yep:
>> yep
- = 123_i64
+ = 123[64]
else: fail("Falsey: $yep")
>> if nope:
fail("Truthy: $nope")