Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jan 6, 2025
1 parent 7f8fdef commit d791860
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def test_offset_bool():
assert not Offset(0, 0)


def test_offset_transpose():
assert Offset(1, 2).transpose == (2, 1)
assert Offset(5, 10).transpose == (10, 5)


def test_offset_is_origin():
assert Offset(0, 0).is_origin
assert not Offset(1, 0).is_origin
Expand Down Expand Up @@ -188,6 +193,7 @@ def test_region_top_right():

def test_region_bottom_right():
assert Region(1, 2, 3, 4).bottom_right == Offset(4, 6)
assert Region(1, 2, 3, 4).bottom_right_inclusive == Offset(3, 5)


def test_region_add():
Expand Down

0 comments on commit d791860

Please sign in to comment.