mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 05:20:28 +02:00
Tighten how input streams handle nothing, and related (#2847)
This commit is contained in:
@@ -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)]
|
||||
|
@@ -103,5 +103,5 @@ fn error_reduce_empty() {
|
||||
)
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("empty input"));
|
||||
assert!(actual.err.contains("needs input"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user