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

Provide overloads for {Unordered}RangeEquals taking a std::initializer_list #2919

Merged

Commits on Oct 12, 2024

  1. Fix typos in comments

    Stefan Haller committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    36e2d9a View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Use default parameter for comparison instead of overloads in {Unorder…

    …ed}RangeEquals
    
    Saves some code duplication.
    Stefan Haller committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    5328f90 View commit details
    Browse the repository at this point in the history
  2. Provide overloads for {Unordered}RangeEquals taking a std::initialize…

    …r_list
    
    This allows writing something like
    
      const auto v = calculateSomeVectorOfInts();
      CHECK_THAT(v, RangeEquals({1, 2, 3}));
    
    Fixes catchorg#2915.
    Stefan Haller committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    ef2f8fb View commit details
    Browse the repository at this point in the history