Fix tests on 1.0.0 and 1.1.0.
This commit is contained in:
parent
ae6329df30
commit
2a0cac7181
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ impl Yaml {
|
||||||
return Yaml::Integer(n.unwrap());
|
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 {
|
match v {
|
||||||
"~" | "null" => Yaml::Null,
|
"~" | "null" => Yaml::Null,
|
||||||
"true" => Yaml::Boolean(true),
|
"true" => Yaml::Boolean(true),
|
||||||
|
|
Loading…
Reference in a new issue