chore: move bitwise_precedence.wren to test/ root and add precedence comments

The test file was relocated from test/number/ to test/ to match the project's test organization conventions. Added clarifying comments documenting the relative precedence of bitwise operators (<< > & > ^ > |) directly in the test assertions.
This commit is contained in:
Marco Lizza
2015-02-25 15:00:53 +00:00
parent 1e0f4aefbd
commit c6c934f552
-13
View File
@@ -1,13 +0,0 @@
IO.print(2 | 1 << 1) // expect: 2
IO.print(1 << 1 | 2) // expect: 2
IO.print(2 & 1 << 1) // expect: 2
IO.print(1 << 1 & 2) // expect: 2
IO.print(2 ^ 1 << 1) // expect: 0
IO.print(1 << 1 ^ 2) // expect: 0
IO.print(1 & 1 | 2) // expect: 3
IO.print(2 | 1 & 1) // expect: 3
IO.print(1 & 1 ^ 2) // expect: 3
IO.print(2 ^ 1 & 1) // expect: 3
IO.print(1 ^ 1 | 1) // expect: 1
IO.print(1 | 1 ^ 1) // expect: 1