Skip to content

Add a test for leap year #105

@brynrhodes

Description

@brynrhodes

The CQL specification is clear that the duration and difference operators deal with calendar durations, and specifically gives the example of duration in years with a date starting on a leap day:

define Test3:
  years between @2012-02-29 and @2014-02-28

In the spec, this example returns 2, based on the ISO definition of calendar years. However, we do not have this specific test case exercised, we should add this test case.

Source: Example 4.b

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request-for this repo, these are new automated tests
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions