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

Update testGetAllCategories #86

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Update testGetAllCategories #86

merged 2 commits into from
Jul 13, 2024

Conversation

malberts
Copy link
Contributor

Follow-up to #82

Small tweak, since the test needs to verify that it works across all/multiple users.

@malberts malberts changed the title Update test Update testGetAllCategories Jul 12, 2024
@JeroenDeDauw JeroenDeDauw requested a review from waximabbax July 12, 2024 12:21
@malberts
Copy link
Contributor Author

malberts commented Jul 12, 2024

I realized there was another point missing: that the list sould contain unique values. This change now causes the test to fail, unless uniqueness is not actually expected (I did not check the code to confirm this, but otherwise the assertion message is misleading).

@JeroenDeDauw
Copy link
Member

Prod code did return unique values. Issue was the assertion checking the array keys as well. Prod code does not guarantee a non-sparse array. Fixed by changing assertSame to assertEqualsCanonicalizing

@JeroenDeDauw JeroenDeDauw merged commit 22d4206 into master Jul 13, 2024
16 checks passed
@JeroenDeDauw JeroenDeDauw deleted the all-cats-test branch July 13, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants