mirror of
https://github.com/nushell/nushell.git
synced 2024-11-24 17:34:00 +01:00
Fix up tests
This commit is contained in:
parent
25ece0a6ab
commit
9ba42eae46
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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)",
|
||||
|
@ -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!(
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user