mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
fix(tests): add test case for the good utilisation of the duration division operator
This commit is contained in:
parent
4e84f424eb
commit
1572244e2d
@ -19,5 +19,5 @@ scope A:
|
||||
definition z2 equals z3 = 5937 day
|
||||
|
||||
definition d equals z3 /^ z3
|
||||
definition d2 equals z3 /^ 1 day
|
||||
definition d2 equals z3 /^ 2 day
|
||||
```
|
||||
|
@ -1,5 +1,6 @@
|
||||
[RESULT] Computation successful! Results:
|
||||
[RESULT] d = 1.
|
||||
[RESULT] d2 = 2968.5
|
||||
[RESULT] x = 2019-01-01
|
||||
[RESULT] y = 2002-09-30
|
||||
[RESULT] z = true
|
||||
|
@ -6,12 +6,10 @@ declaration scope A:
|
||||
context y content decimal
|
||||
context z content decimal
|
||||
context a content decimal
|
||||
context b content decimal
|
||||
|
||||
scope A:
|
||||
definition x equals 84.64866565265689623
|
||||
definition y equals -. 4.36829778705320654980
|
||||
definition z equals 654265429805103220650980650.5705405106540
|
||||
definition a equals x /. y *. (x +. y) *. (x *. x *. z *. z)
|
||||
definition b equals a /. 0.0
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user