Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

More tests for enumerable. - #2326

Merged
stephentoub merged 3 commits into
dotnet:masterfrom
JonHanna:enumerable_tests
Jul 14, 2015
Merged

More tests for enumerable.#2326
stephentoub merged 3 commits into
dotnet:masterfrom
JonHanna:enumerable_tests

Conversation

@JonHanna

Copy link
Copy Markdown
Contributor

Tests originally commited as part of pull-request #2237
moved out into separate pull-request.

Comment thread src/System.Linq/tests/MinMaxTests.cs Outdated

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.

In all of these min/max cases, it'd be good to have some more border cases tests, e.g. a source with one element, a source where the minimum value is MinValue, etc.

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.

Agreed. Shall add some more.

@stephentoub

Copy link
Copy Markdown
Member

Thanks for adding these tests.

@stephentoub

Copy link
Copy Markdown
Member

cc: @VSadov

@JonHanna
JonHanna force-pushed the enumerable_tests branch 2 times, most recently from 58318fd to ef79496 Compare July 13, 2015 20:36
Tests originally commited as part of pull-request dotnet#2237
moved out into separate pull-request.

Consistently favour type names over c# names.

Single element sequences on Min and Max

(What other edge cases should we hit?)

MinValue and MaxValue for element types.

Min & Max with selector

Remove tests on short-circuit/not short-circuit for now.

More skip tests.

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.

Thanks for adding these.

Nit: Other than this one blank line, looks like something may have happened with blank lines elsewhere in the file, i.e. there aren't any 😄 Would you mind adding some between members, as in the other files?

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.

Certainly.

@stephentoub

Copy link
Copy Markdown
Member

Thanks!

stephentoub added a commit that referenced this pull request Jul 14, 2015
@stephentoub
stephentoub merged commit 125f88a into dotnet:master Jul 14, 2015
@JonHanna
JonHanna deleted the enumerable_tests branch August 21, 2015 11:21
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants