From 27b0bb09b7ed5136509de66993a5c40c5b86050b Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Tue, 9 Nov 2021 11:15:52 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20Change=20test=20error=20message=20?= =?UTF-8?q?=E2=99=BB=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 94c4e89..803f880 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1589,7 +1589,7 @@ impl TaskwarriorTui { task.arg("rc.confirmation=off"); if let Some(args) = shlex::split(&format!( - "rc.report.{}.filter='{}'", + r#"rc.report.{}.filter='{}'"#, self.report, self.filter.as_str().trim() )) { @@ -3476,7 +3476,8 @@ mod tests { return; } let app = app.unwrap(); - assert!(app.task_by_index(0).is_none()); + + assert!(app.task_by_index(0).is_none(), "Expected task data to be empty but found {} tasks. Delete contents of {:?} and {:?} and run the tests again.", app.tasks.len(), Path::new(env!("TASKDATA")), Path::new(env!("TASKDATA")).parent().unwrap().join(".config")); let app = TaskwarriorTui::new("next").unwrap(); assert!(app