Skip to content

Conversation

@lognaturel
Copy link
Member

@lognaturel lognaturel commented Dec 11, 2024

Tests illustrating that spaces after CSV delimiters are not stripped. This is something users sometimes run into when they build CSVs by hand. To make matters more confusing, Enketo does strip whitespace so issues are only caught when testing with Collect.

For now I want to make sure we have tests so that the behavior is documented and can't change without being noticed.

I followed the test style in that suite.

@lognaturel lognaturel requested a review from seadowg December 11, 2024 20:29
Copy link
Member

@seadowg seadowg left a comment

Choose a reason for hiding this comment

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

Definitely good to add these tests! How would you feel about reworking them slightly so that each test writes (and then parses) its own CSV file? It's easy enough to track with the diff here, but it's awkward to reason about the test with it not being clear why individual child nodes are being picked out without it.

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