Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Update CLI version, remove JSON serializer APIs and rename Encodings to TextEncodings to avoid conflict. #2676

Merged
merged 4 commits into from
May 14, 2019

Conversation

ahsonkhan
Copy link
Contributor

@@ -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
Copy link
Contributor Author

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

Copy link
Member

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.

@ahsonkhan
Copy link
Contributor Author

@safern, the CI isn't running all the legs. Do you know why?

@safern safern closed this May 14, 2019
@safern safern reopened this May 14, 2019
@safern
Copy link
Member

safern commented May 14, 2019

@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.

@safern
Copy link
Member

safern commented May 14, 2019

The build is running but for some reason GH it is not showing it:

https://dev.azure.com/dnceng/public/_build/results?buildId=188138

@safern
Copy link
Member

safern commented May 14, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ahsonkhan
Copy link
Contributor Author

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.

@ahsonkhan ahsonkhan merged commit a942e17 into dotnet:master May 14, 2019
@ahsonkhan ahsonkhan deleted the UpdateCLI branch May 14, 2019 03:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants