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

test: make test for #88 effective #226

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

Conversation

martinvonz
Copy link
Contributor

The test added in 816df88 doesn't seem to test what it was
supposed to test - it still passses after replacing l.is_empty() { 0 } else { indentation } by just indentation. With the change in this
patch, the test fails with that modification.

The test added in 816df88 doesn't seem to test what it was
supposed to test - it still passses after replacing `l.is_empty() { 0
} else { indentation }` by just `indentation`. With the change in this
patch, the test fails with that modification.
@martinvonz
Copy link
Contributor Author

FYI, I ran into this while trying to fix a bug. The bug is that if you have a snapshot that looks something like\n\nfoo\n, then the inline snapshot will have an empty line first line since #88 (instead of line with some whitespace as it had before), but when parsing that, insta will skip empty lines and it will not match. I think the intent with skipping empty lines is to skip the first line after ###. I'm going to try to fix that bug, but I haven't gotten around to it yet.

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.

None yet

1 participant