@@ -27,6 +27,7 @@ const TOC_TOP_LEVEL: &[&'static str] = &[
27
27
"1. First Chapter" ,
28
28
"2. Second Chapter" ,
29
29
"Conclusion" ,
30
+ "Dummy Book" ,
30
31
"Introduction" ,
31
32
] ;
32
33
const TOC_SECOND_LEVEL : & [ & ' static str ] =
@@ -126,7 +127,8 @@ fn rendered_code_has_playpen_stuff() {
126
127
#[ test]
127
128
fn chapter_content_appears_in_rendered_document ( ) {
128
129
let content = vec ! [
129
- ( "index.html" , "Here's some interesting text" ) ,
130
+ ( "index.html" , "This file is just here to cause the" ) ,
131
+ ( "intro.html" , "Here's some interesting text" ) ,
130
132
( "second.html" , "Second Chapter" ) ,
131
133
( "first/nested.html" , "testable code" ) ,
132
134
( "first/index.html" , "more text" ) ,
@@ -437,7 +439,7 @@ mod search {
437
439
assert_eq ! ( docs[ & some_section] [ "body" ] , "" ) ;
438
440
assert_eq ! (
439
441
docs[ & summary] [ "body" ] ,
440
- "Introduction First Chapter Nested Chapter Includes Recursive Second Chapter Conclusion"
442
+ "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Second Chapter Conclusion"
441
443
) ;
442
444
assert_eq ! ( docs[ & summary] [ "breadcrumbs" ] , "First Chapter » Summary" ) ;
443
445
assert_eq ! ( docs[ & conclusion] [ "body" ] , "I put <HTML> in here!" ) ;
0 commit comments