aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 02:09:18 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 02:09:18 -0400
commit158a1c6ad2d9b3f2a598e6d1d8debcc824ad73d0 (patch)
treec7f05fc95b47e51bd9aa200860ebfdecee91fe57 /test
parenta32d90fcd737a27fd2d098a8d81b5965917439cf (diff)
More fixes
Diffstat (limited to 'test')
-rw-r--r--test/integers.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 94ab8ac6..a99f614a 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -14,7 +14,7 @@ func main():
>> 1i8 + 2i16
= 3_i16
- >> 2 ^ 10
+ >> 1 << 10
= 1024 : Num
>> 3 and 2
@@ -32,7 +32,7 @@ func main():
>> nums
= "1,2,3,4,5,"
- >> x := 123
+ >> x := 123i64
>> x:format(digits=5)
= "00123"
>> x:hex()
@@ -40,10 +40,10 @@ func main():
>> x:octal()
= "0o173"
- >> Int.random()
- >> Int.min
+ >> Int.random(1, 100)
+ >> Int64.min
= -9223372036854775808
- >> Int.max
+ >> Int64.max
= 9223372036854775807