kvu 0.1.3

The simplest command line tool to manage key-value pair lines.
Documentation
use assert_cmd::Command;
use predicates::prelude::*;

#[test]
fn sanity_check() {
    Command::cargo_bin(env!("CARGO_PKG_NAME"))
        .unwrap()
        .arg("-h")
        .assert()
        .success()
        .stdout(predicate::str::contains("print this help menu"))
        .stdout(predicate::str::contains("print the version"));
}

#[test]
fn test_does_nothing() {
    Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap().assert().success();
}

#[test]
fn test_version() {
    Command::cargo_bin(env!("CARGO_PKG_NAME"))
        .unwrap()
        .arg("-v")
        .assert()
        .success()
        .stdout(format!("{}\n", env!("CARGO_PKG_VERSION")));
}