check content of the error message

in suffix_items_cannot_be_followed_by_a_list
This commit is contained in:
Gabor Szabo 2025-03-05 17:27:15 +02:00
parent 5390e44dec
commit 4f0dba8fdb

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]