Merge pull request #74 from jonathandturner/master

Fix up tests
This commit is contained in:
Jonathan Turner 2019-06-03 12:04:15 +12:00 committed by GitHub
commit 897bd1a909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();