catala/tests/test_proof/good/dates_get_year.catala_en
Louis Gesbert a9f8fa36b8 Reduce default verbosity of invariant checks
they break the tests too often for no good reason
2024-01-25 18:18:43 +01:00

28 lines
760 B
Plaintext

## Test
```catala
declaration scope A:
internal x content date
output y content boolean
scope A:
definition x equals |2022-01-16|
definition y under condition get_year of x < 2010 consequence equals true
definition y under condition get_year of x >= 2010 and get_year of x < 2015 consequence equals false
definition y under condition get_year of x >= 2015 and get_year of x < 2020 consequence equals true
definition y under condition get_year of x >= 2020 consequence equals false
```
```catala-test-inline
$ catala Typecheck --check-invariants
[RESULT] All invariant checks passed
[RESULT] Typechecking successful!
```
```catala-test-inline
$ catala Proof --disable-counterexamples
[RESULT] No errors found during the proof mode run.
```