We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ace2abf + e7418f2 commit d68a596Copy full SHA for d68a596
src/book/summary.rs
@@ -749,6 +749,18 @@ mod tests {
749
assert!(got.is_err());
750
}
751
752
+ #[test]
753
+ fn expected_a_start_of_a_link() {
754
+ let src = "- Title\n";
755
+ let mut parser = SummaryParser::new(src);
756
+
757
+ let got = parser.parse_affix(false);
758
759
+ assert!(got.is_err());
760
+ let error_message = got.err().unwrap().to_string();
761
+ assert_eq!(error_message, "failed to parse SUMMARY.md line 1, column 0: Suffix chapters cannot be followed by a list");
762
+ }
763
764
#[test]
765
fn parse_a_link() {
766
let src = "[First](./first.md)";
0 commit comments