MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_same_point_is_zero

Method test_same_point_is_zero

tests/test_visibility.py:41–43  ·  view source on GitHub ↗

同一点,地心角 = 0°。

(self)

Source from the content-addressed store, hash-verified

39 """Haversine 公式的基本性质与已知数值验证。"""
40
41 def test_same_point_is_zero(self):
42 """同一点,地心角 = 0°。"""
43 assert calc_central_angle(0, 0, 0, 0) == pytest.approx(0.0, abs=1e-9)
44
45 def test_same_point_arbitrary_coords(self):
46 """任意坐标的同一点,结果仍为 0°。"""

Callers

nothing calls this directly

Calls 1

calc_central_angleFunction · 0.90

Tested by

no test coverage detected