Add test for parsing json "0" and "0.0"
This commit is contained in:
parent
882d394352
commit
23031d057f
@ -724,6 +724,7 @@ fn test_parse_i64() {
|
||||
#[test]
|
||||
fn test_parse_u64() {
|
||||
test_parse_ok(vec![
|
||||
("0", 0u64),
|
||||
("3", 3u64),
|
||||
("1234", 1234),
|
||||
]);
|
||||
@ -732,6 +733,7 @@ fn test_parse_u64() {
|
||||
#[test]
|
||||
fn test_parse_f64() {
|
||||
test_parse_ok(vec![
|
||||
("0.0", 0.0f64),
|
||||
("3.0", 3.0f64),
|
||||
("3.1", 3.1),
|
||||
("-1.2", -1.2),
|
||||
|
Loading…
x
Reference in New Issue
Block a user