Put custom bitwise operator tests into existing operators test file.

This commit is contained in:
Kyle Marek-Spartz
2014-02-16 19:42:49 -06:00
parent c43dbe96d3
commit d25504eb4e
2 changed files with 4 additions and 11 deletions

View File

@ -1,11 +0,0 @@
class Amp {
& that {
return
}
}
class Pipe {
| that {
return
}
}

View File

@ -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 -