Browse Source

Floats are a mistake

pull/37/head
Dashie der otter 9 months ago
parent
commit
a79b253a6f
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tests/test_libjambon.py

+ 2
- 1
tests/test_libjambon.py View File

@@ -51,7 +51,8 @@ def test_bearing(lon, lat, bear):
51 51
     # Always lon, lat
52 52
     _from = [2.208333333333343, 48.97916666666666]
53 53
     z = bearing.initial_compass_bearing(_from[1], _from[0], lat, lon)
54
-    assert z == bear
54
+    # assert z == bear
55
+    assert bear == pytest.approx(z)
55 56
 
56 57
 
57 58
 @parameterized.expand(

Loading…
Cancel
Save