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

@ -38,9 +38,11 @@ fn table_to_csv_text() {
"#
));
assert!(actual
.out
.contains("Tigre Ecuador,OMYA Andina,3824909999,Calcium carbonate,Colombia"));
assert!(
actual
.out
.contains("Tigre Ecuador,OMYA Andina,3824909999,Calcium carbonate,Colombia")
);
})
}
@ -68,9 +70,11 @@ fn table_to_csv_text_skipping_headers_after_conversion() {
"#
));
assert!(actual
.out
.contains("Tigre Ecuador,OMYA Andina,3824909999,Calcium carbonate,Colombia"));
assert!(
actual
.out
.contains("Tigre Ecuador,OMYA Andina,3824909999,Calcium carbonate,Colombia")
);
})
}
@ -342,9 +346,11 @@ fn from_csv_text_with_multiple_char_separator() {
"#
));
assert!(actual
.err
.contains("separator should be a single char or a 4-byte unicode"));
assert!(
actual
.err
.contains("separator should be a single char or a 4-byte unicode")
);
})
}

View File

@ -257,9 +257,11 @@ fn inf_in_range_fails() {
let actual = nu!(r#"inf..5 | to json"#);
assert!(actual.err.contains("can't convert to countable values"));
let actual = nu!(r#"5..inf | to json"#);
assert!(actual
.err
.contains("Unbounded ranges are not allowed when converting to this format"));
assert!(
actual
.err
.contains("Unbounded ranges are not allowed when converting to this format")
);
let actual = nu!(r#"-inf..inf | to json"#);
assert!(actual.err.contains("can't convert to countable values"));
}

View File

@ -9,16 +9,18 @@ fn msgpack_test(fixture_name: &str, commands: Option<&str>) -> nu_test_support::
let mut outcome = None;
Playground::setup(&format!("msgpack test {}", fixture_name), |dirs, _| {
assert!(nu!(
cwd: dirs.test(),
format!(
"nu -n '{}' '{}'",
path_to_generate_nu.display(),
fixture_name
),
)
.status
.success());
assert!(
nu!(
cwd: dirs.test(),
format!(
"nu -n '{}' '{}'",
path_to_generate_nu.display(),
fixture_name
),
)
.status
.success()
);
outcome = Some(nu!(
cwd: dirs.test(),