Skip to content

Commit cf5a78c

Browse files
committed
Check content of the error message
in ask_the_preprocessor_to_blow_up
1 parent b0cf568 commit cf5a78c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/custom_preprocessors.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ fn ask_the_preprocessor_to_blow_up() {
4343
let got = md.build();
4444

4545
assert!(got.is_err());
46+
let error_message = got.err().unwrap().to_string();
47+
assert_eq!(
48+
error_message,
49+
r#"The "nop-preprocessor" preprocessor exited unsuccessfully with exit status: 1 status"#
50+
);
4651
}
4752

4853
#[test]

0 commit comments

Comments
 (0)