#[macro_use] mod common; /// check we fail when the data is invalid #[test] fn test_bad_format() { assert!(deser_hjson::from_str::("-1").is_err()); assert!(deser_hjson::from_str::("1e-3").is_err()); assert!(deser_hjson::from_str::("1e-3e-5").is_err()); }