use jsode::prelude::*;
macro_rules! should_fail_test {
($name:ident) => {
#[test]
fn $name() {
let mut json = JsonParser::new(include_str!(concat!("../resources/invalid/", stringify!($name), ".json")));
assert!(json.parse().is_err())
}
};
}
should_fail_test!(n_array_newlines_unclosed);
should_fail_test!(n_array_unclosed_trailing_comma);
should_fail_test!(n_structure_close_unopened_array);
should_fail_test!(n_string_with_trailing_garbage);
should_fail_test!(n_string_single_string_no_double_quotes);