Skip to content

Commit

Permalink
Add better operator tests, RE: #657
Browse files Browse the repository at this point in the history
  • Loading branch information
DaelonSuzuka committed Nov 3, 2024
1 parent 154262b commit 07d4fed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
15 changes: 0 additions & 15 deletions src/formatter/snapshots/assignment-operators/out.gd

This file was deleted.

5 changes: 0 additions & 5 deletions src/formatter/snapshots/bitwise-operators/in.gd

This file was deleted.

5 changes: 0 additions & 5 deletions src/formatter/snapshots/bitwise-operators/out.gd

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# --- IN ---
func f():
# arithmetic
x += 1
x -= 1
x *= 1
x /= 1
x %= 1
x = 2 ** 2
x = 2 * -1

# bitwise
x |= 1
x &= 1
x ^= 1
x ~= 1
x = ~1
x /= 1
x >>= 1
x <<= 1

x = 1 << 1 | 1 >> 3
x = 1 << 1 & 1 >> 3
x = 1 ^ ~1

0 comments on commit 07d4fed

Please sign in to comment.