File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
libcxx/test/std/strings/basic.string/string.capacity Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
86
86
assert (s.capacity () <= capacity);
87
87
assert (s.size () == size);
88
88
LIBCPP_ASSERT (is_string_asan_correct (s));
89
- if (s.capacity () == capacity)
90
- LIBCPP_ASSERT (s.data () == data);
89
+ LIBCPP_ASSERT (s.capacity () == capacity && s.data () == data);
91
90
}
92
91
{ // Test with custom allocator with a minimum power of two allocation size
93
92
std::basic_string<char , std::char_traits<char >, pow2_allocator<char > > s (
@@ -99,8 +98,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
99
98
assert (s.capacity () <= capacity);
100
99
assert (s.size () == size);
101
100
LIBCPP_ASSERT (is_string_asan_correct (s));
102
- if (s.capacity () == capacity)
103
- LIBCPP_ASSERT (s.data () == data);
101
+ LIBCPP_ASSERT (s.capacity () == capacity && s.data () == data);
104
102
}
105
103
}
106
104
You can’t perform that action at this time.
0 commit comments