diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:20:18 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:20:18 -0400 |
| commit | 2bb2ff871fa1761478442bec5f6a32c9428360a1 (patch) | |
| tree | 9b73df7a0c50c02353ae7bca7c2cd54788ef0077 /test/nums.tm | |
| parent | 59845e610f2c90474f34079d27b5f1e07071ded4 (diff) | |
Change method calls to use `foo.baz()` instead of `foo:baz()`
Diffstat (limited to 'test/nums.tm')
| -rw-r--r-- | test/nums.tm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/nums.tm b/test/nums.tm index 285614d9..e5de1e22 100644 --- a/test/nums.tm +++ b/test/nums.tm @@ -14,12 +14,12 @@ func main(): >> Num.PI = 3.141592653589793 - >> Num.PI:format(precision=10) + >> Num.PI.format(precision=10) = "3.1415926536" >> Num.INF = Num.INF - >> Num.INF:isinf() + >> Num.INF.isinf() = yes >> none_num : Num? = none @@ -53,24 +53,24 @@ func main(): # >> 0./0. # = none - >> Num.PI:cos()!:near(-1) + >> Num.PI.cos()!.near(-1) = yes - >> Num.PI:sin()!:near(0) + >> Num.PI.sin()!.near(0) = yes - >> Num.INF:near(-Num.INF) + >> Num.INF.near(-Num.INF) = no >> Num32.sqrt(16) = Num32(4)? - >> 0.25:mix(10, 20) + >> (0.25).mix(10, 20) = 12.5 - >> 2.0:mix(10, 20) + >> (2.0).mix(10, 20) = 30. >> Num(5) = 5. - >> 0.5:percent() + >> (0.5).percent() = "50%" |
