quickfix-spec-parser 0.2.1

FIX XML spec file parser / writer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use quickfix_spec_parser::*;

#[test]
fn test_invalid_field_type() {
    assert_eq!(
        "foo".parse::<FieldType>().unwrap_err(),
        FixSpecError::InvalidContent("unknown field type: foo".to_string())
    );
}

#[test]
fn test_invalid_message_category() {
    assert_eq!(
        "foo".parse::<MessageCategory>().unwrap_err(),
        FixSpecError::InvalidContent("invalid msgcat: foo".to_string())
    );
}