Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for streaming with blank lines and a trailing newline
Previously two cases were not tested: 1. The "don't add the prefix if the line is blank" case, which is why the `if input.iter().all(u8::is_ascii_whitespace)` logic exists. 2. The output when the streamed command output includes a trailing newline. Whilst the output for (2) currently includes a redundant newline, IMO it makes sense to have a test demonstrating the issue in the meantime. (I've also added a TODO.)
- Loading branch information