catala/tests/test_dec/good/rounding.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

41 lines
825 B
Plaintext

## Article
```catala
declaration scope A:
output x content decimal
output y content decimal
output x1 content decimal
output y1 content decimal
scope A:
definition x equals 84.648665
definition y equals 4.368297
definition x1 equals round of x
definition y1 equals round of y
```
```catala-test-inline
$ catala Typecheck --check-invariants
[RESULT] All invariant checks passed
[RESULT] Typechecking successful!
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] x = 84.648,665
[RESULT] x1 = 85.0
[RESULT] y = 4.368,297
[RESULT] y1 = 4.0
```
```catala-test-inline
$ catala Interpret_Lcalc -s A --avoid-exceptions --optimize
[RESULT] Computation successful! Results:
[RESULT] x = 84.648,665
[RESULT] x1 = 85.0
[RESULT] y = 4.368,297
[RESULT] y1 = 4.0
```