-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated proper rounding throughout the codebase
- Loading branch information
1 parent
5423403
commit 5333571
Showing
2 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
25 changes: 13 additions & 12 deletions
25
policyengine/tests/economic_impact/inequality_impact.py/inequality_impact.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
# economic_impact_tests.yaml | ||
- test_gini_calculator: | ||
reform: | ||
gov.hmrc.income_tax.rates.uk[0].rate: | ||
"2024-01-01.2100-12-31": 0.55 | ||
country: uk | ||
expected: | ||
baseline: 0.4164 | ||
reform: 0.4047 | ||
change: -0.0117 | ||
change_percentage: -2.8016 | ||
baseline: 0.42 | ||
reform: 0.40 | ||
change: -0.01 | ||
change_percentage: -2.80 | ||
|
||
- test_top_1_pct_share_calculator: | ||
reform: | ||
gov.hmrc.income_tax.rates.uk[0].rate: | ||
"2024-01-01.2100-12-31": 0.55 | ||
country: uk | ||
expected: | ||
baseline: 0.12500093238852833 | ||
reform: 0.14094821470108967 | ||
change: 0.015947282312561345 | ||
change_percentage: 12.757730688755142 | ||
baseline: 0.12 | ||
reform: 0.14 | ||
change: 0.02 | ||
change_percentage: 12.76 | ||
|
||
- test_top_10_pct_share_calculator: | ||
reform: | ||
gov.hmrc.income_tax.rates.uk[0].rate: | ||
"2024-01-01.2100-12-31": 0.55 | ||
country: uk | ||
expected: | ||
baseline: 0.34679109636213723 | ||
reform: 0.3595809102507495 | ||
change: 0.012789813888612278 | ||
change_percentage: 3.6880456340368357 | ||
baseline: 0.35 | ||
reform: 0.36 | ||
change: 0.01 | ||
change_percentage: 3.11 |