Tighten how input streams handle nothing, and related (#2847)

This commit is contained in:
Jonathan Turner
2021-01-03 14:22:44 +13:00
committed by GitHub
parent a5f7600f6f
commit 77f915befe
8 changed files with 99 additions and 63 deletions

View File

@ -33,13 +33,6 @@ fn all() {
})
}
#[test]
fn outputs_zero_with_no_input() {
let actual = nu!(cwd: ".", "math sum");
assert_eq!(actual.out, "0");
}
#[test]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::float_cmp)]

View File

@ -103,5 +103,5 @@ fn error_reduce_empty() {
)
);
assert!(actual.err.contains("empty input"));
assert!(actual.err.contains("needs input"));
}