Skip to content

Commit 25bb436

Browse files
committed
Add test cases for odd-sized vector<bool>
1 parent 7d3334b commit 25bb436

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ TEST_CONSTEXPR_CXX20 bool test() {
101101

102102
{ // Test vector<bool>::iterator optimization
103103
assert(test_vector_bool(8));
104-
assert(test_vector_bool(16));
104+
assert(test_vector_bool(19));
105105
assert(test_vector_bool(32));
106+
assert(test_vector_bool(49));
106107
assert(test_vector_bool(64));
108+
assert(test_vector_bool(199));
107109
assert(test_vector_bool(256));
108110
}
109111

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ TEST_CONSTEXPR_CXX20 bool test() {
127127

128128
{ // Test vector<bool>::iterator optimization
129129
assert(test_vector_bool(8));
130-
assert(test_vector_bool(16));
130+
assert(test_vector_bool(19));
131131
assert(test_vector_bool(32));
132+
assert(test_vector_bool(49));
132133
assert(test_vector_bool(64));
134+
assert(test_vector_bool(199));
133135
assert(test_vector_bool(256));
134136
}
135137

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,11 @@ constexpr bool test() {
230230
#if TEST_STD_VER >= 23
231231
{ // Test vector<bool>::iterator optimization
232232
assert(test_vector_bool(8));
233-
assert(test_vector_bool(16));
233+
assert(test_vector_bool(19));
234234
assert(test_vector_bool(32));
235+
assert(test_vector_bool(49));
235236
assert(test_vector_bool(64));
237+
assert(test_vector_bool(199));
236238
assert(test_vector_bool(256));
237239
}
238240
#endif

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy_n.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ constexpr bool test() {
138138
#if TEST_STD_VER >= 23
139139
{ // Test vector<bool>::iterator optimization
140140
assert(test_vector_bool(8));
141-
assert(test_vector_bool(16));
141+
assert(test_vector_bool(19));
142142
assert(test_vector_bool(32));
143+
assert(test_vector_bool(49));
143144
assert(test_vector_bool(64));
145+
assert(test_vector_bool(199));
144146
assert(test_vector_bool(256));
145147
}
146148
#endif

0 commit comments

Comments
 (0)