aboutsummaryrefslogtreecommitdiff
path: root/tests/invalid-misc.rs
blob: bb70b976b4266183a56ff9e418320ba7096512bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 = nan");
    bad("a = -inf");
    bad("a = inf");
    bad("a = 9e99999");
}