Rust 1.85, edition=2024 (#15741)

This commit is contained in:
Jack Wright
2025-05-13 07:49:30 -07:00
committed by GitHub
parent 1a0986903f
commit c2ac8f730e
793 changed files with 4276 additions and 3687 deletions

View File

@ -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'")
)
}

View File

@ -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]