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

Add documentation and tests for DQL - unique() #2505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

holroy
Copy link
Contributor

@holroy holroy commented Jan 12, 2025

Add missing tests and documentation related to the DQL function unique()

Add missing tests and documentation related to the DQL function `unique()`
Comment on lines +17 to +18
test("multiple unique", () => expectEvals("unique([1, 1, 1])", [1]));
test("multiple same", () => expectEvals("unique([1, 3, 7, 3, 1])", [1, 3, 7]));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the names for these tests flipped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah... It could be based on your perspective... The first test for a test case of multiple occurence of a unique value, and the second tests for multiple occurences of different but still a limited set of values.

Naming is hard... :-)

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.

2 participants