We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f29b87d commit e07bed8Copy full SHA for e07bed8
UnitTest/TestJsonDataObjects.pas
@@ -73,6 +73,7 @@ TestTJsonBaseObject = class(TTestCase)
73
procedure TestToJsonSerializationConfig;
74
procedure TestSyntaxErrors;
75
procedure TestDateTimeToJsonString;
76
+ procedure TestSmallFloatValues;
77
end;
78
79
TestTJsonArray = class(TTestCase)
@@ -1748,6 +1749,22 @@ procedure TestTJsonBaseObject.TestToJsonSerializationConfig;
1748
1749
1750
1751
1752
+procedure TestTJsonBaseObject.TestSmallFloatValues;
1753
+var
1754
+ Json: TJsonObject;
1755
+ S: string;
1756
+begin
1757
+ // Test for Issue #78
1758
+ Json := TJsonObject.Create;
1759
+ try
1760
+ Json.F['Value'] := 0.00001;
1761
+ S := Json.ToJSON();
1762
+ TJsonObject.Parse(S).Free;
1763
+ finally
1764
+ Json.Free;
1765
+ end;
1766
+end;
1767
+
1768
{ TestTJsonArray }
1769
1770
procedure TestTJsonArray.SetUp;
0 commit comments