From 4f0dba8fdb73aacc0398aad3f728d143f18a026f Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Wed, 5 Mar 2025 17:27:15 +0200 Subject: [PATCH] check content of the error message in suffix_items_cannot_be_followed_by_a_list --- src/book/summary.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/book/summary.rs b/src/book/summary.rs index 5c7bad38..d6daf2a1 100644 --- a/src/book/summary.rs +++ b/src/book/summary.rs @@ -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]