Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
testing: examples with trailing whitespace in multiple lines of output can be confusing #26460
Below example fails. Even if I copy the output of
However, if I remove the second print, it succeeds.
I suggest trimming each line before comparing the output.
It's not uncommon to tabular print in examples. It would be annoying to have to remove the trailing spaces, and more importantly, it's hard to spot what's wrong when the example fails.