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

Better support for multi-line Expected / Got #306

Open
John-Colvin opened this issue Oct 3, 2023 · 2 comments
Open

Better support for multi-line Expected / Got #306

John-Colvin opened this issue Oct 3, 2023 · 2 comments

Comments

@John-Colvin
Copy link
Contributor

It can get pretty confusing to read the output when the expected & got values are multi-line. I'm not sure entirely what would be best to solve this, but maybe like this:

Expected:
          | a cup of
          | tea
Got:
          | a cup of brown liquid
          | almost but not entirely
          | unlike tea

or some other way of signalling "this bit is the values"

@atilaneves
Copy link
Owner

The tricky bit here is figuring out what the algorithm should be, and I don't know myself.

@John-Colvin
Copy link
Contributor Author

John-Colvin commented Oct 4, 2023

I was imagining "if found newline in message, split lines, prefix each line with |, join the pieces, add a \n to the front, there's your new message". I don't know if the outcome is the right one though.

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

No branches or pull requests

2 participants