aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-19 13:41:52 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-19 13:41:52 -0500
commit2c904ff1737e34008f7a6c5d4b072d87a45a3fbc (patch)
treeac4c430677042a7ea92b92be5e5afa6e5a4ef27d /test/integers.tm
parent4720ca7a5f3ad4bf2a04a6d28d671f03162149a9 (diff)
Go back to stringifying integers/num32s/bytes without the type
constructor.
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 323508da..02ae519b 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -12,20 +12,20 @@ func main():
= 10
>> Int8(1) + Int16(2)
- = Int16(3)
+ = 3 : Int16
>> 1 << 10
= 1024
!! Signed and unsigned bit shifting:
>> Int64(-2) << 1
- = Int64(-4)
+ = -4 : Int64
>> Int64(-2) <<< 1
- = Int64(-4)
+ = -4 : Int64
>> Int64(-2) >> 1
- = Int64(-1)
+ = -1 : Int64
>> Int64(-2) >>> 1
- = Int64(9223372036854775807)
+ = 9223372036854775807 : Int64
>> 3 and 2
= 2
@@ -51,9 +51,9 @@ func main():
= "0o173"
>> Int64.min
- = Int64(-9223372036854775808)
+ = -9223372036854775808
>> Int64.max
- = Int64(9223372036854775807)
+ = 9223372036854775807
>> Int32(123):hex()
@@ -127,6 +127,6 @@ func main():
= 0
>> Int64(yes)
- = Int64(1)
+ = 1 : Int64
>> Int64(no)
- = Int64(0)
+ = 0 : Int64