Skip to content

Wrong Expected Outcome for Sort with Duplicate Elements #71

@cmoesel

Description

@cmoesel

The test CqlListOperatorsTest.Sort.simpleSortAsc specifies the following CQL:

({4, 5, 1, 6, 2, 1}) sL sort asc

and expected result {1, 1, 2, 4, 5, 6}.

Similarly, the test CqlListOperatorsTest.Sort.simpleSortDesc specifies the following CQL:

({4, 5, 1, 6, 2, 1}) sL sort desc

and expected result {6, 5, 4, 2, 1, 1}.

These are both incorrect since the CQL spec says:

By default, a query returns a list of distinct results, suppressing duplicates.

As such, the expected outputs should be {1, 2, 4, 5, 6} and {6, 5, 4, 2, 1} respectively. Either updated the expected outcomes or add the all keyword to the queries so that duplicates are not suppressed.

Metadata

Metadata

Labels

CQLTest: CQL-Spec-ChangeStory results in an issue to change CQL through HL7 ballotingCQLTest: CQL-test-codeActual tests stored or changed in this repo. Closed through PR and no HL7 balloting required.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions