File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1331,7 +1331,7 @@ mod tests {
13311331 smart-punctuation = true
13321332 "# ;
13331333 let config = Config :: from_str ( src) . unwrap ( ) ;
1334- assert_eq ! ( config. html_config( ) . unwrap( ) . smart_punctuation( ) , true ) ;
1334+ assert ! ( config. html_config( ) . unwrap( ) . smart_punctuation( ) ) ;
13351335
13361336 let src = r#"
13371337 [book]
@@ -1341,16 +1341,13 @@ mod tests {
13411341 curly-quotes = true
13421342 "# ;
13431343 let config = Config :: from_str ( src) . unwrap ( ) ;
1344- assert_eq ! ( config. html_config( ) . unwrap( ) . smart_punctuation( ) , true ) ;
1344+ assert ! ( config. html_config( ) . unwrap( ) . smart_punctuation( ) ) ;
13451345
13461346 let src = r#"
13471347 [book]
13481348 title = "mdBook Documentation"
13491349 "# ;
13501350 let config = Config :: from_str ( src) . unwrap ( ) ;
1351- assert_eq ! (
1352- config. html_config( ) . unwrap_or_default( ) . smart_punctuation( ) ,
1353- false
1354- ) ;
1351+ assert ! ( !config. html_config( ) . unwrap_or_default( ) . smart_punctuation( ) ) ;
13551352 }
13561353}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn example_supports_whatever() {
1717
1818 let got = cmd. supports_renderer ( "whatever" ) ;
1919
20- assert_eq ! ( got, true ) ;
20+ assert ! ( got) ;
2121}
2222
2323#[ test]
@@ -26,7 +26,7 @@ fn example_doesnt_support_not_supported() {
2626
2727 let got = cmd. supports_renderer ( "not-supported" ) ;
2828
29- assert_eq ! ( got, false ) ;
29+ assert ! ( ! got) ;
3030}
3131
3232#[ test]
You can’t perform that action at this time.
0 commit comments