aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 14:13:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 14:13:02 -0400
commit5a0502bdf5da0b1cdb91fb1d0dfa08b4c4a4db0b (patch)
treed461fec6453e8e99cefabd712ee27091528731ea /test
parent148782e61ba4efbf2981e7d9e18279e92054e149 (diff)
Fix some edge cases
Diffstat (limited to 'test')
-rw-r--r--test/integers.tm19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integers.tm b/test/integers.tm
index c92cbddf..55683500 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -56,3 +56,22 @@ func main():
>> Int(2.1)
= 2 : Int
+
+ do:
+ >> small_int := 1
+ = 1
+ >> max_small_int := 536870911
+ = 536870911
+ >> max_i64 := 536870912
+ = 536870912
+ >> super_big := 9999999999999999999999
+ = 9999999999999999999999
+ >> max_small_int + 1
+ = 536870912
+
+ >> max_small_int + max_small_int
+ = 1073741822
+
+ >> super_big + 1
+ = 10000000000000000000000
+