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 <, >, <= and >= for [function() > function()] selectors #1886

Merged
merged 2 commits into from
Jun 3, 2023

Conversation

Famlam
Copy link
Collaborator

@Famlam Famlam commented Jun 3, 2023

Fixes #1882

I added test cases for:

  • *[string_returning_function > string_returning_function]
  • *[string_returning_function > int/float]
  • *[int_returning_function > int/float]
  • *[int_returning_function > string_returning_function]

See osm-fr#1882 :
always use numerical comparison for `<` / `>` / `<=` / `>=`
String - string input, e.g. tag(X) > tag(X)
String - number input, e.g. tag(X) > number
Int - number input, e.g.
@frodrigo frodrigo merged commit e400260 into osm-fr:dev Jun 3, 2023
@Famlam Famlam deleted the fix-gt-ge-lt-le branch June 3, 2023 20:32
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.

mapcss [functionresult() <= functionresult()] gives bad results with numbers
2 participants