mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 01:17:47 +02:00
--no-edit
This commit is contained in:
@ -203,9 +203,18 @@ fn errors_fetching_by_index_out_of_bounds() {
|
||||
"#
|
||||
));
|
||||
|
||||
assert!(actual.contains("Row not found"));
|
||||
assert!(actual.contains("There isn't a row indexed at '3'"));
|
||||
assert!(actual.contains("The table only has 3 rows (0..2)"))
|
||||
assert!(
|
||||
actual.contains("Row not found"),
|
||||
format!("actual: {:?}", actual)
|
||||
);
|
||||
assert!(
|
||||
actual.contains("There isn't a row indexed at 3"),
|
||||
format!("actual: {:?}", actual)
|
||||
);
|
||||
assert!(
|
||||
actual.contains("The table only has 3 rows (0 to 2)"),
|
||||
format!("actual: {:?}", actual)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
@ -214,10 +223,13 @@ fn requires_at_least_one_column_member_path() {
|
||||
Playground::setup("get_test_9", |dirs, sandbox| {
|
||||
sandbox.with_files(vec![EmptyFile("andres.txt")]);
|
||||
|
||||
let actual = nu_error!(
|
||||
cwd: dirs.test(), "ls | get"
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), "ls | get | get type | echo $it"
|
||||
);
|
||||
|
||||
assert!(actual.contains("requires member parameter"));
|
||||
assert_eq!(
|
||||
actual,
|
||||
"[row: name, type, size, created, accessed, modified]"
|
||||
);
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user