[libcxx-commits] [PATCH] D111738: [libcxx][test] Add tests for std::vector comparisons

Konstantin Boyarinov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 18 06:32:37 PDT 2021


kboyarinov updated this revision to Diff 380368.
kboyarinov added a comment.

Remove negative tests because //EqualityComparable// is a //Precondition// for `std::vector::operator==`. Violation of the precondition results in undefined behavior => the fact that the program is ill-formed is not guaranteed by the standard and should not be tested.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111738/new/

https://reviews.llvm.org/D111738

Files:
  libcxx/test/std/containers/sequences/vector/compare.pass.cpp
  libcxx/test/support/test_comparisons.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111738.380368.patch
Type: text/x-patch
Size: 6217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211018/13048031/attachment.bin>


More information about the libcxx-commits mailing list