Wrong test assertion in Test_Span2D{T}
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 68/100
Research direction
Open tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs and inspect lines 296-316, starting with the assertion that compares the array with itself. Replace the self-comparison with the intended Span2D or constant expected value, then run the relevant CommunityToolkit.HighPerformance unit tests; done means the assertion can detect an incorrect result.
Written by the indexing model from the issue text.
Description
Describe the bug
In this test we check that array is equals to itself but probably it should be compared with span2d or with a constant expected value.
Regression
No response
Steps to reproduce
1. Open the code :)
Expected behavior
the array should be compared with the span2d variable or with a constant expected value.
Screenshots
No response
IDE and version
VS 2022
IDE version
No response
Nuget packages
- CommunityToolkit.Common
- CommunityToolkit.Diagnostics
- CommunityToolkit.HighPerformance
- CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
Doesn't matter
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
- Dominant language
- C#
- Stars
- 3.8k
- Forks
- 400
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CommunityToolkit/dotnet
-
bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
CommunityToolkit/dotnet#1206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CommunityToolkit/dotnet#1186 ·
-
bug :bug:
Difficulty 3/5 1-2 days Newbie friendliness 68/100
CommunityToolkit/dotnet#1215 ·
-
feature request :mailbox_with_mail:
Difficulty 5/5 Over a week Newbie friendliness 45/100
CommunityToolkit/dotnet#1214 ·
-
bug :bug:
Difficulty 4/5 3-5 days Newbie friendliness 58/100
CommunityToolkit/dotnet#1208 ·
All issues in CommunityToolkit/dotnet
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
builtbybel/CrapFixer#112 ·
-
area-ai untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
dotnet/extensions#7790 ·
Maintainers usually reply within 1 day
-
Beginner Friendly T: Bugfix
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
space-wizards/space-station-14#46220 ·
Maintainers usually reply within 1 day
-
P2 testing
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
dotnet/runtime#134766 · 3 comments ·
Maintainers usually reply within 1 day