Where are the container comparison tests?


I’m implementing the spaceship operator for the standard containers at the moment, but I can only find the array comparison tests. (And when I get operator<=> to do something wrong at run-time, no assertions seem to fire. Compile-time errors confirm they’re being compiled.)

Where are they located?



We have them for std::array, it appears. :wink:
In libcxx/test/std/containers/sequences/array/compare.pass.cpp

— Marshall

Yeah, that’s all I’ve found. I take it there’s nothing for std::vector and friends. What does that mean for implementing <=>?