This commit is contained in:
James Newton-King
2016-10-06 14:04:46 +13:00
parent 69ae589622
commit e74d6c5a4b
@@ -61,6 +61,19 @@ namespace Newtonsoft.Json.Tests
[TestFixture]
public class JsonTextReaderTest : TestFixtureBase
{
[Test]
public void Float_ReadAsString_Exact()
{
const string testJson = "{float: 0.0620}";
JsonTextReader reader = new JsonTextReader(new StringReader(testJson));
Assert.IsTrue(reader.Read());
Assert.IsTrue(reader.Read());
string s = reader.ReadAsString();
Assert.AreEqual("0.0620", s);
}
[Test]
public void Float_NaN_Read()
{