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 0796691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Newtonsoft.Json.Tests/JsonConvertTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,8 @@ public void CustomDoubleRounding()
[Test]
public void DoubleRoundTrip()
{
var x = 0.1 + 0.2;
var y = JsonConvert.DeserializeObject<double>(JsonConvert.SerializeObject(x));
double x = 0.1 + 0.2;
double y = JsonConvert.DeserializeObject<double>(JsonConvert.SerializeObject(x));
Assert.AreEqual(x, y);
}

Expand Down

0 comments on commit 0796691

Please sign in to comment.