randselect 0.3.1

Tool for randomly selecting files from a directory.
Documentation
extern crate randselect;

use std::path::PathBuf;

#[test]
fn runs_without_error() {
    let mut test_cli = randselect::Cli {
        out_dir: PathBuf::from(r"./test/"),
        in_dir: PathBuf::from(r"."),
        num_files: 10,
        move_files: false,
        go: false,
        seed: Some(8),
    };
    if let Err(e) = randselect::run(&mut test_cli) {
        panic!("Failed to run successfully: {:?}.", e)
    }
}

#[test]
fn runs_with_error() {
    let mut test_cli = randselect::Cli {
        out_dir: PathBuf::from(r"."),
        in_dir: PathBuf::from(r"."),
        num_files: 10,
        move_files: false,
        go: false,
        seed: Some(8),
    };
    if let Ok(_) = randselect::run(&mut test_cli) {
        panic!("Should have failed.")
    }
}