mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Put custom bitwise operator tests into existing operators test file.
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
class Amp {
|
||||
& that {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
class Pipe {
|
||||
| that {
|
||||
return
|
||||
}
|
||||
}
|
||||
@ -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 -
|
||||
|
||||
Reference in New Issue
Block a user