Merge pull request #2569 from szabgab/suffix_items_cannot_be_followed_by_a_list

check content of the error message
This commit is contained in:
Eric Huss 2025-03-05 17:56:16 +00:00 committed by GitHub
commit b0cf568ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -747,6 +747,8 @@ mod tests {
let got = parser.parse_affix(false);
assert!(got.is_err());
let error_message = got.err().unwrap().to_string();
assert_eq!(error_message, "failed to parse SUMMARY.md line 2, column 1: Suffix chapters cannot be followed by a list");
}
#[test]