mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 01:01:54 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -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")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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"));
|
||||
}
|
||||
|
@ -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(),
|
||||
|
Reference in New Issue
Block a user