Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Assert that a large enumerable contains only the very same item n times? #914
I have a collection of 100K sample numbers. In one test case I want to assert that all of them are of the same value. I tried:
This takes quite some time (around five seconds). Which is WAY to long. Is this a bug in the implementation? Why is it taking so long? I think it's the wrong function, but I couldn't find a
My workaround now is
Ideas on how to do that properly?
@drauch I have just tried to reproduce the problem with following test.
On my machine it always passes, even for more elements than 100K. Could you provide minimal, complete and verifiable example?
Yes, we're fixing up the last things to get 5.5.0 ready.
So stay tuned, we're also eager to get out a new release.