Skip to content

Add AllBitsSet DIM - #72961

Merged
dakersnar merged 6 commits into
dotnet:mainfrom
dakersnar:feature-69676-2
Aug 12, 2022
Merged

dakersnar merged 6 commits into
dotnet:mainfrom
dakersnar:feature-69676-2

Conversation

@dakersnar

@dakersnar dakersnar commented Jul 27, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #69676

Continuation of effort here: #71356

I wanted to get this PR up early so it can be merged as soon as dotnet/linker#2865 is fixed.

Is there an easy way to unit test DIMs? I can add unit tests if that would be helpful/possible.

@dakersnar
dakersnar requested a review from tannergooding July 27, 2022 20:33
@ghost

ghost commented Jul 27, 2022

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost

ghost commented Jul 27, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

I wanted to get this PR up early so it can be merged as soon as dotnet/linker#2865 is fixed.

Is there an easy way to unit test DIMs? I can add unit tests if that would be helpful/possible.

Author: dakersnar
Assignees: dakersnar
Labels:

area-System.Numerics, new-api-needs-documentation

Milestone: -

@dakersnar dakersnar added blocked Issue/PR is blocked on something - see comments NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) and removed NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) blocked Issue/PR is blocked on something - see comments labels Jul 27, 2022
@dakersnar

Copy link
Copy Markdown
Contributor Author

Seems like the bug was actually fixed, so this should be ready to merge

<Compile Include="System\NullableMetadataTests.cs" />
<Compile Include="System\NullableTests.cs" />
<Compile Include="System\NullReferenceExceptionTests.cs" />
<Compile Include="System\Numerics\IBinaryNumberTests.cs" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: The other generic math files are under a special item group down on L262

Comment on lines 263 to 268
<Compile Include="$(CommonTestPath)System\GenericMathHelpers.cs" Link="Common\System\GenericMathHelpers.cs" />
<Compile Include="System\Numerics\GenericMathDimHelpers.cs" />
<Compile Include="System\Numerics\IBinaryNumberTests.cs" />
<Compile Include="System\ByteTests.GenericMath.cs" />
<Compile Include="System\CharTests.GenericMath.cs" />
<Compile Include="System\DecimalTests.GenericMath.cs" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@tannergooding does this placement look correct now?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@dakersnar
dakersnar merged commit 5eb776d into dotnet:main Aug 12, 2022
@dakersnar
dakersnar deleted the feature-69676-2 branch August 12, 2022 22:19
@ghost ghost locked as resolved and limited conversation to collaborators Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API Proposal]: Add AllBitsSet to the IBinaryNumber Interface

3 participants