diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-22 02:03:02 +0300 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-22 02:03:02 +0300 |
commit | 4aef6a08aa41f25dcde2f5e791f7c243e54258a2 (patch) | |
tree | c5bfee1faeda929a0484f6f8d1d60563e0342797 /libcxx/test | |
parent | 430c96b67a9e716a8accb93339b3787e3f8540ef (diff) |
Replace assert(true) in tests with actual asserts. Reviewed as https://reviews.llvm.org/D40324
In a17cd7c641c34b6c4bd4845a4d4fb590cb6c238c Marshall added assert(true) to the vector<bool>::size tests, which break on C1XX:
D:\Contest\gl0qojfu.5pe\src\qa\vc\libs\libcxx\upstream\test\std\containers\sequences\vector.bool\size.pass.cpp(62): error C2220: warning treated as error - no 'object' file generated
d:\contest\gl0qojfu.5pe\src\qa\vc\libs\libcxx\upstream\test\std\containers\sequences\vector.bool\size.pass.cpp(33) : warning C6326: Potential comparison of a constant with another constant.
d:\contest\gl0qojfu.5pe\src\qa\vc\libs\libcxx\upstream\test\std\containers\sequences\vector.bool\size.pass.cpp(52) : warning C6326: Potential comparison of a constant with another constant.
The corresponding test for vector::size asserts assert(c.size() == 3);, so I changed it to do that here.
llvm-svn: 318812
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/std/containers/sequences/vector.bool/size.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/sequences/vector.bool/size.pass.cpp b/libcxx/test/std/containers/sequences/vector.bool/size.pass.cpp index a1dcfd69ee3e..b7cd7ca134b5 100644 --- a/libcxx/test/std/containers/sequences/vector.bool/size.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector.bool/size.pass.cpp @@ -31,7 +31,7 @@ int main() c.push_back(true); assert(c.size() == 2); c.push_back(C::value_type(3)); - assert(true); + assert(c.size() == 3); c.erase(c.begin()); assert(c.size() == 2); c.erase(c.begin()); @@ -50,7 +50,7 @@ int main() c.push_back(true); assert(c.size() == 2); c.push_back(C::value_type(3)); - assert(true); + assert(c.size() == 3); c.erase(c.begin()); assert(c.size() == 2); c.erase(c.begin()); |