mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-24 14:36:25 +02:00
Add direction tests.
This commit is contained in:
parent
50191f63d1
commit
a3bafc8c84
1 changed files with 8 additions and 0 deletions
|
@ -20,3 +20,11 @@ def test_compass_points_2():
|
|||
def test_compass_points_3():
|
||||
assert np.allclose(
|
||||
parse_vector("SSW"), np.array([-0.38268343, 0.92387953]))
|
||||
|
||||
|
||||
def test_wrong():
|
||||
assert not parse_vector("O")
|
||||
|
||||
|
||||
def test_degree():
|
||||
assert np.allclose(parse_vector("90"), np.array([1, 0]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue