From 1f9147187d66e95a0ffedd4d5595ec98646b5fe1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 25 Mar 2025 15:40:59 -0400 Subject: Make docstring tests use an actual expression AST instead of text matching --- test/integers.tm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/integers.tm') diff --git a/test/integers.tm b/test/integers.tm index 9ab0b0c2..c8fd5c9b 100644 --- a/test/integers.tm +++ b/test/integers.tm @@ -12,20 +12,20 @@ func main(): = 10 >> Int8(1) + Int16(2) - = 3 : Int16 + = Int16(3) >> 1 << 10 = 1024 !! Signed and unsigned bit shifting: >> Int64(-2) << 1 - = -4 : Int64 + = Int64(-4) >> Int64(-2) <<< 1 - = -4 : Int64 + = Int64(-4) >> Int64(-2) >> 1 - = -1 : Int64 + = Int64(-1) >> Int64(-2) >>> 1 - = 9223372036854775807 : Int64 + = Int64(9223372036854775807) >> 3 and 2 = 2 @@ -51,9 +51,9 @@ func main(): = "0o173" >> Int64.min - = -9223372036854775808 + = Int64(-9223372036854775808) >> Int64.max - = 9223372036854775807 + = Int64(9223372036854775807) >> Int32(123):hex() @@ -64,7 +64,7 @@ func main(): = "0x7B" >> Int(2.1, truncate=yes) - = 2 : Int + = 2 do: >> small_int := 1 @@ -127,9 +127,9 @@ func main(): = 0 >> Int64(yes) - = 1 : Int64 + = Int64(1) >> Int64(no) - = 0 : Int64 + = Int64(0) >> 4:choose(2) = 6 -- cgit v1.2.3