Skip to content

Improve geopoint tests #817

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

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

Conversation

lognaturel
Copy link
Member

@lognaturel lognaturel commented Feb 18, 2025

Adds tests to capture geopoint behavior.

@latin-panda let me know if there are others you think we should add!

@lognaturel lognaturel marked this pull request as ready for review February 25, 2025 19:29
Copy link

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Do you think the suggestion below makes sense?

scenario.answer("/data/q1","1.234 5.678");
assertThat(scenario.getAnswerNode("/data/note").isRelevant(), is(false));

scenario.answer("/data/q1", "1.234 5.678 0 0");

Choose a reason for hiding this comment

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

Suggestion:

  • Having a test where the altitude is not zero: 1.234 5.678 0 0
  • Having another test where values can produce NaN (e.g. then value is nullable, field is not relevant): ABC 23.55, PP 0

Choose a reason for hiding this comment

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

@lognaturel, would you prefer to leave this suggestion for another PR?

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