diff --git a/test/custom_operators/bitwise.wren b/test/custom_operators/bitwise.wren deleted file mode 100644 index 086d2849..00000000 --- a/test/custom_operators/bitwise.wren +++ /dev/null @@ -1,11 +0,0 @@ -class Amp { - & that { - return - } -} - -class Pipe { - | that { - return - } -} diff --git a/test/method/operators.wren b/test/method/operators.wren index 48fa74dd..d7df4710 100644 --- a/test/method/operators.wren +++ b/test/method/operators.wren @@ -10,6 +10,8 @@ class Foo { >= other { return "infix >= " + other } == other { return "infix == " + other } != other { return "infix != " + other } + & other { return "infix & " + other } + | other { return "infix | " + other } ! { return "prefix !" } - { return "prefix -" } @@ -27,5 +29,7 @@ IO.print(foo <= "a") // expect: infix <= a IO.print(foo >= "a") // expect: infix >= a IO.print(foo == "a") // expect: infix == a IO.print(foo != "a") // expect: infix != a +IO.print(foo & "a") // expect: infix & a +IO.print(foo | "a") // expect: infix | a IO.print(!foo) // expect: prefix ! IO.print(-foo) // expect: prefix -