aboutsummaryrefslogtreecommitdiff
path: root/tests/invalid-misc.rs
blob: 53f625ee5e58c205931c32a4c1cce9d907a167f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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("''");
}