Skip to content

Conversation

@lognaturel
Copy link
Member

This is a pattern that we broke in Enketo a while ago. I want to make sure it's explicitly tested here because it is a bit surprising.

@lognaturel lognaturel requested a review from seadowg January 6, 2023 22:44
assertThat(scenario.answerOf("/data/some-field"), is(intAnswer(42)));
}

// Users use relevance on calculates to ensure that calculations are only run when the values
Copy link
Member

Choose a reason for hiding this comment

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

Is it important to make sure that the calculation isn't executed or just that the calculation isn't "answered"? I'm guessing it's the latter (as that's what this test is about), but the comment suggests it might the former.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great and deep question. Now I'm no longer 100% sure of the intent. This led me to some strange docs: getodk/docs#1547 I will come back to it.

@lognaturel lognaturel marked this pull request as draft January 20, 2023 00:07
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