-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add AllBitsSet DIM #72961
Add AllBitsSet DIM #72961
Conversation
Note regarding the 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. |
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsI 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.
|
Seems like the bug was actually fixed, so this should be ready to merge |
src/libraries/System.Private.CoreLib/src/System/Numerics/IBinaryNumber.cs
Show resolved
Hide resolved
@@ -111,6 +112,7 @@ | |||
<Compile Include="System\NullableMetadataTests.cs" /> | |||
<Compile Include="System\NullableTests.cs" /> | |||
<Compile Include="System\NullReferenceExceptionTests.cs" /> | |||
<Compile Include="System\Numerics\IBinaryNumberTests.cs" /> |
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.
nit: The other generic math files are under a special item group down on L262
src/libraries/System.Runtime/tests/System/Numerics/GenericMathDimHelpers.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime/tests/System/Numerics/IBinaryNumberTests.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
<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" /> |
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 does this placement look correct now?
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.
LGTM.
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.