From d25504eb4e65561b8524717b0947b94daa1b5d72 Mon Sep 17 00:00:00 2001 From: Kyle Marek-Spartz Date: Sun, 16 Feb 2014 19:42:49 -0600 Subject: [PATCH] Put custom bitwise operator tests into existing operators test file. --- test/custom_operators/bitwise.wren | 11 ----------- test/method/operators.wren | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 test/custom_operators/bitwise.wren 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 -