/ go Public
testing: Testable examples collapse
Output newlines, making them impossible to pass
help wanted NeedsFix
The path to resolution is known, but the work has not been done.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
Outputannotation is modified by the
Viewable here: https://go.dev/play/p/LFktKVr75lz
ExampleFoofunction returns data containing successive newlines:
ExampleFoocontains an embedded
Output:annotation with the same expected output:
stdoutare compared, with leading and trailing whitespace removed
What did you expect to see?
Output:should be parsed as-is, not modified (beyond trimming leading and trailing whitespace)
What did you see instead?
The multiple empty lines are collapsed into a single empty line
Did a little hunting to see if I could find a root cause, no success yet
Currently suspect it's either hidden somewhere within the
testingpackage, or is an unintended side effect of how chains of single line comments are parsed by
The text was updated successfully, but these errors were encountered: