-
Notifications
You must be signed in to change notification settings - Fork 344
Update CLI version, remove JSON serializer APIs and rename Encodings to TextEncodings to avoid conflict. #2676
Conversation
@@ -212,8 +212,9 @@ public void ParseJson(bool compactData, TestCaseType type, string jsonString) | |||
|
|||
if (type == TestCaseType.Json400KB) | |||
{ | |||
expectedString = ReadJson400KB(jtoken); | |||
actualString = ReadJson400KB(obj); | |||
// TODO: Investigate why 1 + 75486/(double)100000 == 1.7548599999999999 instead of just 1.75846 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tannergooding, is this expected behavior? Shows up in 3.0 only (not in netfx/.NET Core 2.1):
double x = 1 + 75486/(double)100000;
Console.WriteLine(x); // 1.7548599999999999
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The raw bits for 1 + 75486 / (double)100000
are 0x3FFC13E81450EFDC
The raw bits for 1.75486
are 0x3FFC13E81450EFDD
In full framework, ToString()
returned 1.75486
for both of them, which meant you couldn't differentiate.
In core, we return the shortest roundtrippable string, which allows them to always be differentiated.
@safern, the CI isn't running all the legs. Do you know why? |
I know there is an Azure DevOps bug with the github webhooks we have a thread going on. Don’t know if this is what is hitting but looking now. |
The build is running but for some reason GH it is not showing it: https://dev.azure.com/dnceng/public/_build/results?buildId=188138 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Since the build was actually successful, merging to unblock other contributors (https://dev.azure.com/dnceng/public/_build/results?buildId=188146). Will keep an eye out for any official build failures, just in case. |
This helps unblock @Gnbrkm41: #2673 (comment)
cc @steveharter, @GrabYourPitchforks