Skip to content

Commit

Permalink
Fix test result for divide5 operation
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Dec 21, 2023
1 parent 7159a1d commit e7ae9ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions fhirpathpy/engine/invocations/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ def mul(ctx, x, y):
def div(ctx, x, y):
if y == 0:
return []
# TODO: Discuss it with the team
# return rround(ctx, x/y, 8)
return x / y


Expand Down
2 changes: 1 addition & 1 deletion tests/cases/fhir-r4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3180,7 +3180,7 @@ tests:
- true
- desc: '** testDivide5'
inputfile: patient-example.json
expression: 1.2 / 1.8 = 0.66666667
expression: 1.2 / 1.8 = 0.6666666666666666666666666667
result:
- true
- desc: '** testDivide6'
Expand Down

0 comments on commit e7ae9ab

Please sign in to comment.