chore: add pass/fail condition to test
This commit is contained in:
parent
fb1e507863
commit
b179e581f5
1 changed files with 3 additions and 2 deletions
|
@ -119,9 +119,10 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let items = ["rowern", "sybil", "vex"];
|
||||
let mut menu = Menu::new(Config::default());
|
||||
menu.add_items(&["rowern", "sybil", "vex"]);
|
||||
menu.add_items(&items);
|
||||
let result = menu.inner_mut().run();
|
||||
println!("{result:?}");
|
||||
assert!(items.contains(&result.unwrap().as_str()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue