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

Allow multiple arguments in ne/ge/gt/le/lt functions #6775

Merged
merged 1 commit into from Jan 23, 2020

Conversation

le0tan
Copy link
Contributor

@le0tan le0tan commented Jan 19, 2020

This PR is trying to close #6619:

I adopted && as the connective between logical values because of #6619 (comment):

!(a==b || a==c) is equilvalent to a!=b && a!=c so I understand ne a b c should be translated the same way

@bep
Copy link
Member

bep commented Jan 20, 2020

Thanks for this; the implementation looks great, but I think we need some added test cases for this...?

Treat op arg1 arg2 arg3 ... as (arg1 op arg2) && (arg1 op arg3)
and so on for ne/ge/gt/le/lt.

Closes gohugoio#6619
Copy link
Contributor

@moorereason moorereason left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@le0tan
Copy link
Contributor Author

le0tan commented Jan 22, 2020

@bep I added the requested tests, are they sufficient?

@bep bep merged commit 0c251be into gohugoio:master Jan 23, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow multiple arguments in ne function
3 participants