summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2023-08-12 20:54:57 -0400
committerGitHub <noreply@github.com>2023-08-12 20:54:57 -0400
commita48a368b423da5190e54c637568264d58a3dbf9d (patch)
tree0105ef395330a0702e4f4341b27e244297b8e241
parentb134e704fc4f49ad2c0d2fc28121bee041261db8 (diff)
Add assertion failure message (#1508)
-rw-r--r--src/env.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/env.rs b/src/env.rs
index c22d50e9..978c4881 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -76,7 +76,12 @@ pub mod tests {
fn test_env_parsing_with_pager_set_to_bat() {
env::set_var("PAGER", "bat");
let env = DeltaEnv::init();
- assert_eq!(env.pagers.1, Some("bat".into()));
+ assert_eq!(
+ env.pagers.1,
+ Some("bat".into()),
+ "Expected env.pagers.1 == Some(bat) but was {:?}",
+ env.pagers.1
+ );
}
#[test]