fix(tests): add test case for the good utilisation of the duration division operator

This commit is contained in:
EmileRolley 2021-05-30 12:15:32 +02:00
parent 4e84f424eb
commit 1572244e2d
3 changed files with 2 additions and 3 deletions

View File

@ -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
```

View File

@ -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

View File

@ -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
```