mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 22:58:02 +00:00
Add test for parsing json "0" and "0.0"
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user