extern crate time;
extern crate num;
#[cfg(test)]
mod tsts {
use time::precise_time_ns;
use num::pow::pow;
use std::process::{Command, Output};
#[test]
fn tst_cpr() {
let cmnd = "target/release/cpr";
let args = ["-i", "asts/lncrnas_4_tst.fa", "-o", "asts/lncrnas_4_tst.dat"];
let bgn = precise_time_ns();
rn_cmnd(cmnd, &args, "Failed to run CapR.");
let elps_tm = precise_time_ns() - bgn;
println!("Elapsed time = {}[s].", elps_tm as f32 * pow(0.1, 9));
}
fn rn_cmnd(cmnd: &str, args: &[&str], expct: &str) -> Output {
Command::new(cmnd).args(args).output().expect(expct)
}
}