aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/integers.tm4
-rw-r--r--test/nums.tm4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 9fa5ffc2..6ba1559c 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -39,10 +39,10 @@ func main()
= "1,2,3,4,5,"
>> x := Int64(123)
- >> x.format(digits=5)
- = "00123"
>> x.hex()
= "0x7B"
+ >> x.hex(digits=4)
+ = "0x007B"
>> x.octal()
= "0o173"
diff --git a/test/nums.tm b/test/nums.tm
index 573b50ec..3653f18a 100644
--- a/test/nums.tm
+++ b/test/nums.tm
@@ -14,8 +14,8 @@ func main()
>> Num.PI
= 3.141592653589793
- >> Num.PI.format(precision=10)
- = "3.1415926536"
+ >> Num.PI.with_precision(0.01)
+ = 3.14
>> Num.INF
= Num.INF