acick 0.0.8

Tools for programming contests
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use structopt::StructOpt;

macro_rules! assert_match {
    ($a:expr => $b:pat) => {
        assert!(match $a {
            $b => true,
            _ => false,
        });
    };
}

#[test]
fn run_with_no_args() {
    let args = [""];
    let res = acick::Opt::from_iter_safe(&args);
    assert_match!(res => Err(_));
}