Small fixes in tests.
This commit is contained in:
+3
-3
@@ -105,11 +105,11 @@ impl<'a> LKEval<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => out.push("error: password not found".to_string()),
|
None => out.push("error: password not found".to_string()),
|
||||||
}
|
},
|
||||||
Command::Rm(name) => match self.state.borrow_mut().db.remove(name) {
|
Command::Rm(name) => match self.state.borrow_mut().db.remove(name) {
|
||||||
Some(pwd) => out.push(format!("removed {}", pwd.borrow().name)),
|
Some(pwd) => out.push(format!("removed {}", pwd.borrow().name)),
|
||||||
None => out.push("error: password not found".to_string()),
|
None => out.push("error: password not found".to_string()),
|
||||||
}
|
},
|
||||||
Command::Help => {
|
Command::Help => {
|
||||||
out.push("HELP".to_string());
|
out.push("HELP".to_string());
|
||||||
}
|
}
|
||||||
@@ -135,7 +135,7 @@ impl<'a> LKEval<'a> {
|
|||||||
LKErr::ParseError(e) => out.push(e.to_string()),
|
LKErr::ParseError(e) => out.push(e.to_string()),
|
||||||
LKErr::ReadError(e) => out.push(e.to_string()),
|
LKErr::ReadError(e) => out.push(e.to_string()),
|
||||||
LKErr::Error(e) => out.push(format!("error: {}", e.to_string())),
|
LKErr::Error(e) => out.push(format!("error: {}", e.to_string())),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
LKPrint::new(out, quit, self.state.clone())
|
LKPrint::new(out, quit, self.state.clone())
|
||||||
|
|||||||
Reference in New Issue
Block a user