Skip to content
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

Range tests: scale sizes according to a policy #2081

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dmitriy-sobolev
Copy link
Contributor

@dmitriy-sobolev dmitriy-sobolev commented Feb 25, 2025

An approach alternative to #2078 (suggested in #2078 (comment))

@dmitriy-sobolev dmitriy-sobolev added the test Test only Change label Feb 25, 2025
@danhoeflinger
Copy link
Contributor

danhoeflinger commented Feb 25, 2025

I do think I like this version better, it does things more concisely in the tests themselves, without having to call the same API multiple times.

This PR also touches all the ranges tests, which is nice (though perhaps is something which could be done for the other strategy as well).

@dmitriy-sobolev dmitriy-sobolev marked this pull request as ready for review February 25, 2025 21:36

namespace test_std_ranges
{

inline constexpr std::size_t big_sz = (1<<25) + 10; //32M
inline constexpr int big_sz = (1<<24) + 10; //16M
Copy link
Contributor

Choose a reason for hiding this comment

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

It was 32M before.... What's a reason to changes it to 16M?
Don't we whether make test coverage worse?

Copy link
Contributor Author

@dmitriy-sobolev dmitriy-sobolev Feb 26, 2025

Choose a reason for hiding this comment

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

There are no specializations for more than 16M elements. So the coverage remains the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test only Change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants