Add 2025 Alabama standard deduction tests for surviving spouse - #9432
Merged
hua7450 merged 1 commit intoSep 12, 2026
Merged
Conversation
Follow-up to PolicyEngine#9424 based on review findings: - Adds boundary test cases for SURVIVING_SPOUSE in 2025 (matching JOINT behavior under Ala. Code § 40-18-15(b) as amended by Act 2022-297). - Cleans up trailing blank line at EOF.
hua7450
approved these changes
Sep 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a follow-up to #9424 addressing the post-merge review feedback from @anth-volk:
SURVIVING_SPOUSEat $25,999 (full $8,500 deduction) and $26,000 (first $175 reduction to $8,325) inal_standard_deduction.yaml.al_standard_deduction.yamlsogit diff --checkpasses cleanly.changelog.d/.Response to Finding C1 (Rounding Alabama AGI)
We reviewed Finding C1 regarding rounding Alabama AGI prior to floor division and agree that no change should be made to the formula in
al_standard_deduction.py:threshold.yamlintroduced in Update 2025 Alabama income tax #7192. It did not alter the formula logic inal_standard_deduction.py, which has performed floor division on continuous AGI since its initial implementation.np.round(al_agi)) inside individual deduction variables would create artificial notch/step discontinuities for continuous income distributions in microsimulation and API usage without statutory basis.For these reasons, the existing unrounded continuous evaluation in
al_standard_deduction.pyis appropriate and retained.