Skip to content

Commit

Permalink
Test taux_de_liquidatin RSNA et CNRPS
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Nov 18, 2024
1 parent 85e76e6 commit b8bb98d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ brackets:
value: 0.005
- threshold:
1960-01-01:
value: 160
value: 120
rate:
1960-01-01:
value: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
- name: "5 ans de trimetres CNRPS"

Check warning on line 1 in tests/formulas/cnrps/taux_de_liquidation.yaml

View workflow job for this annotation

GitHub Actions / lint-files (maximal)

1:1 [document-start] missing document start "---"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 5 * 4
output:
cnrps_taux_de_liquidation: .1

- name: "10 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 10 * 4
output:
cnrps_taux_de_liquidation: .2

- name: "13 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 13 * 4
output:
cnrps_taux_de_liquidation: .2 + .09

- name: "21 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 21 * 4
output:
cnrps_taux_de_liquidation: .5 + .02

- name: "31 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 31 * 4
output:
cnrps_taux_de_liquidation: .5 + .22

- name: "40 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 40 * 4
output:
cnrps_taux_de_liquidation: .9

- name: "50 ans de trimetres CNRPS"
period: 2011
absolute_error_margin: 0.5
absolute_error_margin: 1e-10
input:
cnrps_duree_assurance: 50 * 4
output:
Expand Down
55 changes: 55 additions & 0 deletions tests/formulas/rsna/taux_de_liquidation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
- name: "5 ans de trimetres CNSS"

Check warning on line 1 in tests/formulas/rsna/taux_de_liquidation.yaml

View workflow job for this annotation

GitHub Actions / lint-files (maximal)

1:1 [document-start] missing document start "---"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 5 * 4
output:
rsna_taux_de_liquidation: .2

- name: "10 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 10 * 4
output:
rsna_taux_de_liquidation: .4

- name: "13 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 13 * 4
output:
rsna_taux_de_liquidation: .4 + .06

- name: "21 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 21 * 4
output:
rsna_taux_de_liquidation: .4 + .22

- name: "31 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 31 * 4
output:
rsna_taux_de_liquidation: .8

- name: "40 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 40 * 4
output:
rsna_taux_de_liquidation: .8

- name: "50 ans de trimetres CNSS RSNA"
period: 2011
absolute_error_margin: 1e-10
input:
rsna_duree_assurance: 50 * 4
output:
rsna_taux_de_liquidation: .8

0 comments on commit b8bb98d

Please sign in to comment.