Fix up tests

This commit is contained in:
Jonathan Turner 2019-06-03 12:03:40 +12:00
parent 25ece0a6ab
commit 9ba42eae46
3 changed files with 3 additions and 5 deletions

2
Cargo.lock generated
View File

@ -1168,7 +1168,7 @@ dependencies = [
[[package]]
name = "nu"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"adhoc_derive 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -78,9 +78,7 @@ pub async fn cli() -> Result<(), Box<Error>> {
}
rl.set_helper(Some(h));
if rl.load_history("history.txt").is_err() {
println!("No previous history.");
}
let _ = rl.load_history("history.txt");
loop {
let readline = rl.readline(&format!(

View File

@ -40,7 +40,7 @@ mod tests {
match process.stdin.unwrap().write_all(input_commands.as_bytes()) {
Err(why) => panic!("couldn't write to wc stdin: {}",
why.description()),
Ok(_) => println!("sent pangram to wc"),
Ok(_) => {},
}
let mut s = String::new();