Skip to content

Equality incorrect for quantity literals #2151

Open
@piotrszul

Description

@piotrszul

Equality for quantity literals produces incorrect results (mostly {} instead for 'true' for equal literals)

(Equality exclusions)

Details

Expected: true but got: null ==> expected: <true> but was: <null>

  • 1 year != 1 'a' [null]
  • 12 months = 1 year [null]
  • 1 year = 1 year [null]
  • 1 month != 1 'mo' [null]
  • 1 month = 30 days [null]
  • 1 day = 24 hours [null]
  • 10 'kg.m/s2' = 5 'kg' * 4 'm' / (2 seconds * 1000 'ms') [null]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfhirpathRelated to fhirpath reference implementation

    Type

    Projects

    Status

    Planned

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions