mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 18:31:53 +02:00
Add boundary box test.
This commit is contained in:
parent
eb48600e9c
commit
d1e7da2efd
1 changed files with 18 additions and 0 deletions
18
test/test_boundary_box.py
Normal file
18
test/test_boundary_box.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
"""
|
||||
Test boundary box.
|
||||
"""
|
||||
from roentgen.ui import BoundaryBox
|
||||
|
||||
__author__ = "Sergey Vartanov"
|
||||
__email__ = "me@enzet.ru"
|
||||
|
||||
|
||||
def test_extend() -> None:
|
||||
box: BoundaryBox = BoundaryBox(
|
||||
10.067596435546875,
|
||||
46.094186149226466,
|
||||
10.0689697265625,
|
||||
46.09513848390771,
|
||||
).round()
|
||||
|
||||
assert box.get_format() == "10.066,46.093,10.070,46.097"
|
Loading…
Add table
Add a link
Reference in a new issue