Further edits to help messages (#6913)

This commit is contained in:
Leon
2022-10-27 02:36:42 +10:00
committed by GitHub
parent 902aad6016
commit 5add5cbd12
34 changed files with 113 additions and 73 deletions

View File

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

View File

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

View File

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