Skip to content

Commit b0cf568

Browse files
authored
Merge pull request #2569 from szabgab/suffix_items_cannot_be_followed_by_a_list
check content of the error message
2 parents 5390e44 + 4f0dba8 commit b0cf568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/book/summary.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ mod tests {
747747
let got = parser.parse_affix(false);
748748

749749
assert!(got.is_err());
750+
let error_message = got.err().unwrap().to_string();
751+
assert_eq!(error_message, "failed to parse SUMMARY.md line 2, column 1: Suffix chapters cannot be followed by a list");
750752
}
751753

752754
#[test]

0 commit comments

Comments
 (0)