Skip to content

Commit

Permalink
tests: adds tests for ignoring term width with set_term_width(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Aug 24, 2016
1 parent 7dfdaf2 commit 7558261
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ fn multi_level_sc_help() {
test::check_err_output(app, "ctest help subcmd multi", MULTI_SC_HELP, false);
}

#[test]
fn no_wrap_help() {
let app = App::new("ctest")
.set_term_width(0)
.help(MULTI_SC_HELP);
test::check_err_output(app, "ctest --help", MULTI_SC_HELP, false);
}

#[test]
fn complex_subcommand_help_output() {
let mut a = test::complex_app();
Expand Down

0 comments on commit 7558261

Please sign in to comment.