Skip to content

Commit f1b6f8d

Browse files
committed
Update pay-leave-for-parents-questions-and-responses.yml
I've arbitrarily chosen salary amounts of £10,000/year. I came up with the due dates up by running the regression tests multiple times until I was confident that I was covering all code branches in the outcomes/snippets. I did this by adding marker text in the various conditionals, running the regression tests and then comparing the marker text in the test artefacts to the marker text in the outcomes/snippets. This set of due dates allows me to reach each path. This approach helped me find some unused code paths which I've removed in PR #2006.
1 parent cf301f9 commit f1b6f8d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/data/pay-leave-for-parents-questions-and-responses.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@
33
- 'yes'
44
- 'no'
55
:due_date:
6-
- 'TODO: When is the baby due?'
6+
- '2012-02-01' # not in 13/14, 14/15, 15/16 financial years, but before 5 Apr 15
7+
- '2014-02-01' # in 13/14 financial year
8+
- '2015-02-01' # in 14/15 financial year
9+
- '2015-04-05' # in 14/15 financial year but on or after 5 Apr 15
10+
- '2016-02-01' # in 15/16 financial year
11+
- '2017-02-01' # not in 13/14, 14/15, 15/16 financial years, but after 5 Apr 15
712
:mother_started_working_before_continuity_start_date:
813
- 'yes'
914
- 'no'
1015
:mother_still_working_on_continuity_end_date:
1116
- 'yes'
1217
- 'no'
1318
:mother_salary:
14-
- 'TODO: How much does the mother earn (or did she earn, if she’s left her job)?'
19+
- '10000-year'
1520
:mother_earned_more_than_lower_earnings_limit:
1621
- 'yes'
1722
- 'no'
@@ -22,17 +27,15 @@
2227
- 'yes'
2328
- 'no'
2429
:salary_1_66_weeks:
25-
- 'TODO: How much did the mother earn between %{earnings_employment_start_date(due_date)}
26-
and %{earnings_employment_end_date(due_date)}?'
30+
- '10000-year'
2731
:partner_started_working_before_continuity_start_date:
2832
- 'yes'
2933
- 'no'
3034
:partner_still_working_on_continuity_end_date:
3135
- 'yes'
3236
- 'no'
3337
:partner_salary:
34-
- 'TODO: How much does the mother’s partner earn (or did they earn, if they’ve left
35-
their job)?'
38+
- '10000-year'
3639
:partner_earned_more_than_lower_earnings_limit:
3740
- 'yes'
3841
- 'no'

0 commit comments

Comments
 (0)