Skip to content

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