mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Further edits to help messages (#6913)
This commit is contained in:
@ -121,7 +121,10 @@ fn allow_missing_optional_params() -> TestResult {
|
||||
|
||||
#[test]
|
||||
fn help_present_in_def() -> TestResult {
|
||||
run_test_contains("def foo [] {}; help foo;", "Display this help message")
|
||||
run_test_contains(
|
||||
"def foo [] {}; help foo;",
|
||||
"Display the help message for this command",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -53,7 +53,7 @@ fn in_and_if_else() -> TestResult {
|
||||
|
||||
#[test]
|
||||
fn help_works_with_missing_requirements() -> TestResult {
|
||||
run_test(r#"each --help | lines | length"#, "29")
|
||||
run_test(r#"each --help | lines | length"#, "37")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -251,7 +251,7 @@ fn length_for_rows() -> TestResult {
|
||||
#[test]
|
||||
fn length_defaulted_columns() -> TestResult {
|
||||
run_test(
|
||||
r#"echo [[name, age]; [test, 10]] | default 11 age | get 0 | columns | length"#,
|
||||
r#"[[name, age]; [test, 10]] | default 11 age | get 0 | columns | length"#,
|
||||
"2",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user