Skip to content

Commit

Permalink
wip: coveralls test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinatorul committed Sep 2, 2015
1 parent b8a8618 commit a6e0e4b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,26 @@ fn create_positional() {
.get_matches();
}

#[test]
fn create_positional_req() {
let _ = App::new("test")
.arg(Arg::with_name("test")
.index(1)
.required(true)
.help("testing testing"))
.get_matches_from(vec!["", "test"]);
}

#[test]
fn create_positional_multiple() {
let _ = App::new("test")
.arg(Arg::with_name("test")
.index(1)
.multiple(true)
.help("testing testing"))
.get_matches();
}

#[test]
fn create_positional_usage() {
let a = Arg::from_usage("[pos] 'some help info'");
Expand Down

0 comments on commit a6e0e4b

Please sign in to comment.