From 5a0502bdf5da0b1cdb91fb1d0dfa08b4c4a4db0b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Aug 2024 14:13:02 -0400 Subject: Fix some edge cases --- test/integers.tm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test') 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 + -- cgit v1.2.3