aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-25 15:40:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-25 15:40:59 -0400
commit1f9147187d66e95a0ffedd4d5595ec98646b5fe1 (patch)
tree14281e5cbde8e15fae63953b72844fb1a11d6f73 /test/integers.tm
parentd88d8648dc7802fbeac2f28dc5f2ef8fdfe1a9e4 (diff)
Make docstring tests use an actual expression AST instead of text
matching
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm20
1 files changed, 10 insertions, 10 deletions
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