summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-07-14 08:27:12 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-07-14 08:27:12 +0800
commit6894dd8db51cd6fe8a70ad0c906ef351dc0a720c (patch)
treee63676b41fae54105db4773520ee7aac914dfd62
parentee680b9b82618a1d5ecab1fb2e431fe3ff64d130 (diff)
refactor
-rw-r--r--src/interactive/app/tests/journeys_with_writes.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/interactive/app/tests/journeys_with_writes.rs b/src/interactive/app/tests/journeys_with_writes.rs
index 9ea65d6..a4d5c53 100644
--- a/src/interactive/app/tests/journeys_with_writes.rs
+++ b/src/interactive/app/tests/journeys_with_writes.rs
@@ -18,11 +18,7 @@ fn basic_user_journey_with_deletion() -> Result<()> {
"expecting 4 selected entries, the parent dir, and some children"
);
- assert_eq!(
- fixture.as_ref().is_dir(),
- true,
- "expecting fixture root to exist"
- );
+ assert!(fixture.as_ref().is_dir(), "expecting fixture root to exist");
// When selecting the marker window and pressing the combination to delete entries
app.process_events(
@@ -33,9 +29,8 @@ fn basic_user_journey_with_deletion() -> Result<()> {
]
.into_iter(),
)?;
- assert_eq!(
+ assert!(
app.window.mark_pane.is_none(),
- true,
"the marker pane is gone as all entries have been removed"
);
assert_eq!(app.state.selected, None, "nothing is left to be selected");
@@ -43,9 +38,8 @@ fn basic_user_journey_with_deletion() -> Result<()> {
app.state.root, app.traversal.root_index,
"the only root left is the top-level"
);
- assert_eq!(
- fixture.as_ref().is_dir(),
- false,
+ assert!(
+ !fixture.as_ref().is_dir(),
"the directory should have been deleted",
);
Ok(())