Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reference key tests #249

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Fix reference key tests #249

merged 2 commits into from
Jul 1, 2024

Conversation

johngrimes
Copy link
Collaborator

I found a couple of problems with the reference key tests:

  • Incorrect null expectations where the result should be false
  • A column with an implementation-specific expectation in one of the tests

…specifier

These should be false, as `link.other.getReferenceKey()` should return a key for `Patient/p3`. The absence of the type specifier should not cause this to return an empty collection, rather the collection should be unconstrained by the type of the reference.

In the case where it is the right type specifier, it should also return a non-empty collection.
The inclusion of the direct result of the getReferenceKey call in the test makes it implementation-specific and moves outside of the scope of the specification.
@johngrimes johngrimes requested a review from Yngwarr June 26, 2024 03:36
@johngrimes johngrimes added this to the v2.0.0 milestone Jun 26, 2024
@johngrimes johngrimes added the testing Issues relating to the test suite. label Jun 26, 2024
@Yngwarr
Copy link
Collaborator

Yngwarr commented Jul 1, 2024

Good catch, thank you!

@Yngwarr Yngwarr merged commit e9502a4 into master Jul 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issues relating to the test suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants