use quickfix_spec_parser::*;
fn check_text(expected: &[u8]) {
assert!(parse_spec(expected).is_err(),);
}
#[test]
fn test_invalid_parse() {
// Bad root node.
check_text(b"");
// Bad version.
check_text(r#""#.as_bytes());
check_text(r#""#.as_bytes());
check_text(r#""#.as_bytes());
check_text(r#""#.as_bytes());
// Missing fix type.
check_text(r#""#.as_bytes());
// Invalid XML.
check_text(b"