-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix basic income child age bug (#775)
* Add failing unit test * Fix test * Versioning
- Loading branch information
1 parent
66728c0
commit 4873f75
Showing
3 changed files
with
21 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: patch | ||
changes: | ||
fixed: | ||
- Bug causing child minimum basic income ages to function incorrectly when the adult UBI is nonzero. |
10 changes: 10 additions & 0 deletions
10
policyengine_uk/tests/policy/reforms/parametric/basic_income/bi_maximum.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- name: Minimum child age functions correctly when adult is non zero. | ||
period: 2021 | ||
input: | ||
gov.contrib.ubi_center.basic_income.amount.child_min_age: 16 | ||
gov.contrib.ubi_center.basic_income.amount.by_age.working_age: 1 | ||
people: | ||
child: | ||
age: 14 | ||
output: | ||
basic_income: 0 |
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