forked from extern/nushell
Do not panic when failing to decode lines from external stdout (#1364)
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user