Do not panic when failing to decode lines from external stdout (#1364)

This commit is contained in:
Jason Gedge
2020-02-10 10:37:48 -05:00
committed by GitHub
parent dc50e61f26
commit a29d52158e
4 changed files with 42 additions and 8 deletions

View File

@ -78,6 +78,24 @@ mod it_evaluation {
}
}
mod stdin_evaluation {
use super::nu_error;
use nu_test_support::pipeline;
#[test]
fn does_not_panic_with_no_newline_in_stream() {
let stderr = nu_error!(
cwd: ".",
pipeline(r#"
nonu "where's the nuline?"
| count
"#
));
assert_eq!(stderr, "");
}
}
mod external_words {
use super::nu;