add more color highlighting to help (#6449)

This commit is contained in:
Darren Schroeder
2022-08-31 03:15:03 -05:00
committed by GitHub
parent a03fb946d9
commit 2591bd8c63
6 changed files with 72 additions and 44 deletions

View File

@ -127,7 +127,7 @@ fn help_present_in_def() -> TestResult {
#[test]
fn help_not_present_in_extern() -> TestResult {
run_test(
"module test {export extern \"git fetch\" []}; use test; help git fetch",
"module test {export extern \"git fetch\" []}; use test; help git fetch | ansi strip",
"Usage:\n > git fetch",
)
}

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"#, "32")
run_test(r#"each --help | lines | length"#, "29")
}
#[test]