mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:06:40 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -76,9 +76,11 @@ fn correctly_escape_external_arguments() {
|
||||
fn escape_also_escapes_equals() {
|
||||
let actual = nu!("^MYFOONAME=MYBARVALUE");
|
||||
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("Command `MYFOONAME=MYBARVALUE` not found"));
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("Command `MYFOONAME=MYBARVALUE` not found")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -721,7 +723,9 @@ fn external_error_with_backtrace() {
|
||||
#[test]
|
||||
fn sub_external_expression_with_and_op_should_raise_proper_error() {
|
||||
let actual = nu!("(nu --testbin cococo false) and true");
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("The 'and' operator does not work on values of type 'string'"))
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("The 'and' operator does not work on values of type 'string'")
|
||||
)
|
||||
}
|
||||
|
@ -771,9 +771,11 @@ fn filesize_math() {
|
||||
#[test]
|
||||
fn filesize_math2() {
|
||||
let actual = nu!("100 / 10kB");
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("nu::parser::operator_incompatible_types"));
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("nu::parser::operator_incompatible_types")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -1133,9 +1135,11 @@ fn command_not_found_error_shows_not_found_2() {
|
||||
#[test]
|
||||
fn error_on_out_greater_pipe() {
|
||||
let actual = nu!(r#""foo" o>| print"#);
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("Redirecting stdout to a pipe is the same as normal piping"))
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("Redirecting stdout to a pipe is the same as normal piping")
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user