Fix tests on 1.0.0 and 1.1.0.

This commit is contained in:
GaveUp 2016-02-07 16:21:05 -06:00
parent ae6329df30
commit 2a0cac7181

View file

@ -259,6 +259,9 @@ impl Yaml {
return Yaml::Integer(n.unwrap());
}
}
if v.starts_with("+") && v[1..].parse::<i64>().is_ok() {
return Yaml::Integer(v[1..].parse::<i64>().unwrap());
}
match v {
"~" | "null" => Yaml::Null,
"true" => Yaml::Boolean(true),