toml-rs/test-suite/tests/invalid-misc.rs
2018-07-11 00:50:04 -07:00

15 lines
220 B
Rust

extern crate toml;
#[test]
fn bad() {
fn bad(s: &str) {
assert!(s.parse::<toml::Value>().is_err());
}
bad("a = 01");
bad("a = 1__1");
bad("a = 1_");
bad("''");
bad("a = 9e99999");
}