Ported from yinduzhanxing 0afa2780 (algorithm hunks and its four regression tests; the PyJHora / profile-metadata hunks do not apply to our file). The archived-PyJHora Kala test follows upstream's rewrite. The V.P. Jain benchmark expectations still need the three-column update (follow-up in this branch). TASK-upstream-sync4-20261002 T3. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
14 lines
467 B
Python
14 lines
467 B
Python
import pytest
|
|
from scripts.shadbala import _ayana_bala
|
|
|
|
|
|
@pytest.mark.parametrize("planet", ["Sun", "Moon", "Mars", "Mercury", "Jupiter", "Venus", "Saturn"])
|
|
def test_ayana_uses_wrapped_tropical_hemisphere(planet):
|
|
assert _ayana_bala(planet, 350.0, 22.0) == _ayana_bala(planet, -10.0, 22.0)
|
|
|
|
|
|
def test_venus_just_after_tropical_aries_uses_north_addition():
|
|
bala, declination = _ayana_bala("Venus", 350.0, 22.0)
|
|
assert declination > 0
|
|
assert bala > 30
|