microsoft / microsoft/STL

Expand constexpr vector testing

Open
#1,640 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

test
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

GH-1407 implements constexpr std::vector (#45) along with basic test coverage for the various constexpr-ized vector functions. However, the test coverage regarding allocators is a little light. There is currently coverage that observes how many copies of the allocator are made, but not not testing non-equal allocators.

Once we finish up the initial implementations of all C++20 features, we should revisit #45 and improve test coverage here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading GH-1407 and #45, then locate the existing constexpr vector tests that observe allocator copies. Add coverage for non-equal allocators and verify the relevant constexpr vector test suite passes; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.