diff --git a/src/config.rs b/src/config.rs index eba95286f7..9db79a7aac 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1331,7 +1331,7 @@ mod tests { smart-punctuation = true "#; let config = Config::from_str(src).unwrap(); - assert_eq!(config.html_config().unwrap().smart_punctuation(), true); + assert!(config.html_config().unwrap().smart_punctuation()); let src = r#" [book] @@ -1341,16 +1341,13 @@ mod tests { curly-quotes = true "#; let config = Config::from_str(src).unwrap(); - assert_eq!(config.html_config().unwrap().smart_punctuation(), true); + assert!(config.html_config().unwrap().smart_punctuation()); let src = r#" [book] title = "mdBook Documentation" "#; let config = Config::from_str(src).unwrap(); - assert_eq!( - config.html_config().unwrap_or_default().smart_punctuation(), - false - ); + assert!(!config.html_config().unwrap_or_default().smart_punctuation()); } } diff --git a/tests/custom_preprocessors.rs b/tests/custom_preprocessors.rs index 8237602de0..3cc67af607 100644 --- a/tests/custom_preprocessors.rs +++ b/tests/custom_preprocessors.rs @@ -17,7 +17,7 @@ fn example_supports_whatever() { let got = cmd.supports_renderer("whatever"); - assert_eq!(got, true); + assert!(got); } #[test] @@ -26,7 +26,7 @@ fn example_doesnt_support_not_supported() { let got = cmd.supports_renderer("not-supported"); - assert_eq!(got, false); + assert!(!got); } #[test]