Skip to content

Commit

Permalink
Make sure to use same type for AreEqual arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
oleks committed Feb 22, 2023
1 parent f067837 commit e954f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Newtonsoft.Json.Tests/JsonConvertTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ public void CustomDoubleRounding()
[Test]
public void DoubleRoundTrip()
{
var x = 0.1 + 0.2;
double x = 0.1 + 0.2;
var y = JsonConvert.DeserializeObject<double>(JsonConvert.SerializeObject(x));
Assert.AreEqual(x, y);
}
Expand Down

0 comments on commit e954f70

Please sign in to comment.