diff --git a/serde_with/tests/chrono_0_4.rs b/serde_with/tests/chrono_0_4.rs index f18a29b6..f1c5ee40 100644 --- a/serde_with/tests/chrono_0_4.rs +++ b/serde_with/tests/chrono_0_4.rs @@ -456,9 +456,9 @@ fn test_chrono_timestamp_seconds() { ]], ); check_error_deserialization::( - r#"0.0"#, + r#"0.1"#, expect![[ - r#"invalid type: floating point `0`, expected a string containing a number at line 1 column 3"# + r#"invalid type: floating point `0.1`, expected a string containing a number at line 1 column 3"# ]], ); @@ -547,8 +547,8 @@ fn test_chrono_timestamp_seconds_with_frac() { expect![[r#"invalid type: integer `1`, expected a string at line 1 column 1"#]], ); check_error_deserialization::( - r#"0.0"#, - expect![[r#"invalid type: floating point `0`, expected a string at line 1 column 3"#]], + r#"0.1"#, + expect![[r#"invalid type: floating point `0.1`, expected a string at line 1 column 3"#]], ); #[serde_as] diff --git a/serde_with/tests/serde_as/time.rs b/serde_with/tests/serde_as/time.rs index 91808b4d..f33ea0f7 100644 --- a/serde_with/tests/serde_as/time.rs +++ b/serde_with/tests/serde_as/time.rs @@ -324,9 +324,9 @@ fn test_timestamp_seconds_systemtime() { ]], ); check_error_deserialization::( - r#"0.0"#, + r#"0.1"#, expect![[ - r#"invalid type: floating point `0`, expected a string containing a number at line 1 column 3"# + r#"invalid type: floating point `0.1`, expected a string containing a number at line 1 column 3"# ]], ); @@ -423,8 +423,8 @@ fn test_timestamp_seconds_with_frac_systemtime() { expect![[r#"invalid type: integer `1`, expected a string at line 1 column 1"#]], ); check_error_deserialization::( - r#"0.0"#, - expect![[r#"invalid type: floating point `0`, expected a string at line 1 column 3"#]], + r#"0.1"#, + expect![[r#"invalid type: floating point `0.1`, expected a string at line 1 column 3"#]], ); #[serde_as]