Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable double-to-integer conversion tests #74980

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Sep 3, 2024

Resolves #74026.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 3, 2024
@jjonescz jjonescz marked this pull request as ready for review September 3, 2024 14:58
@jjonescz jjonescz requested a review from a team as a code owner September 3, 2024 14:58
' CheckDouble(Integer.MaxValue + 2D, Integer.MinValue) ' overflow
CheckDouble(Integer.MaxValue + 0.99D, ]]><%= If(ExecutionConditionUtil.IsMonoOrCoreClr, "Integer.MaxValue", "Integer.MinValue") %><![CDATA[) ' overflow
CheckDouble(Integer.MaxValue + 1D, ]]><%= If(ExecutionConditionUtil.IsMonoOrCoreClr, "Integer.MaxValue", "Integer.MinValue") %><![CDATA[) ' overflow
CheckDouble(Integer.MaxValue + 2D, ]]><%= If(ExecutionConditionUtil.IsMonoOrCoreClr, "Integer.MaxValue", "Integer.MinValue") %><![CDATA[) ' overflow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider changing CheckDouble so that it has an overload that takes two arguments: expected framework and expected core? That may make the callsite code a bit cleaner.

Copy link
Member Author

@jjonescz jjonescz Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could be done but at the price of having to do many more code changes - the CheckDouble/CheckSingle methods are defined in each test separately (so either we would have to change the tests to share them or update the method in each of these tests), I'm not sure that's worth it.

@jjonescz jjonescz merged commit 71134f1 into dotnet:main Sep 5, 2024
24 checks passed
@jjonescz jjonescz deleted the 74026-ConversionTests branch September 5, 2024 07:46
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visual Basic double to integer conversion tests stopped working in .NET 9 Preview 5
2 participants