File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1331,7 +1331,7 @@ mod tests {
1331
1331
smart-punctuation = true
1332
1332
"# ;
1333
1333
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( ) ) ;
1335
1335
1336
1336
let src = r#"
1337
1337
[book]
@@ -1341,16 +1341,13 @@ mod tests {
1341
1341
curly-quotes = true
1342
1342
"# ;
1343
1343
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( ) ) ;
1345
1345
1346
1346
let src = r#"
1347
1347
[book]
1348
1348
title = "mdBook Documentation"
1349
1349
"# ;
1350
1350
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( ) ) ;
1355
1352
}
1356
1353
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn example_supports_whatever() {
17
17
18
18
let got = cmd. supports_renderer ( "whatever" ) ;
19
19
20
- assert_eq ! ( got, true ) ;
20
+ assert ! ( got) ;
21
21
}
22
22
23
23
#[ test]
@@ -26,7 +26,7 @@ fn example_doesnt_support_not_supported() {
26
26
27
27
let got = cmd. supports_renderer ( "not-supported" ) ;
28
28
29
- assert_eq ! ( got, false ) ;
29
+ assert ! ( ! got) ;
30
30
}
31
31
32
32
#[ test]
You can’t perform that action at this time.
0 commit comments