diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 02:46:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 02:46:56 -0400 |
| commit | f4011eb489d97bbf3170c81a985a09568bfc0dd7 (patch) | |
| tree | 95cc74aed5c86e28d79559e13ab0bbfe3182f70e /test | |
| parent | ab7a5e7af6e03f512964f47d75fb90f1b0de5f54 (diff) | |
Remove test
Diffstat (limited to 'test')
| -rw-r--r-- | test/metamethods.tm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/metamethods.tm b/test/metamethods.tm index d20670b2..0b4bf87c 100644 --- a/test/metamethods.tm +++ b/test/metamethods.tm @@ -44,9 +44,6 @@ struct Vec2(x,y:Int): func modulo1(v:Vec2, modulus:Int; inline)->Vec2: return Vec2(v.x mod1 modulus, v.y mod1 modulus) - func power(v:Vec2, exponent:Num; inline)->Vec2: - return Vec2(Int(v.x ^ exponent), Int(v.y ^ exponent)) - func main(): >> x := Vec2(10, 20) >> y := Vec2(100, 200) @@ -90,6 +87,4 @@ func main(): = Vec2(x=1, y=2) >> x mod1 3 = Vec2(x=1, y=2) - >> x^2.0 - = Vec2(x=1, y=4) |
