Skip to content

Commit ce04fcb

Browse files
committed
Use ordinary assert instead of LIBCPP_ASSERT
1 parent 5834b98 commit ce04fcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/test/std/strings/basic.string/awkward-char-types.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ template <typename Char>
99
void test_string() {
1010
// Make a test string.
1111
std::basic_string<Char> s;
12-
LIBCPP_ASSERT(s.size() == 0);
12+
assert(s.size() == 0);
1313

1414
// Append enough chars to it that we must have switched over from a short
1515
// string stored internally to a long one pointing to a dynamic buffer,
1616
// causing a reallocation.
1717
unsigned n = sizeof(s) / sizeof(Char) + 1;
1818
for (unsigned i = 0; i < n; i++) {
1919
s.push_back(Char::from_integer(i));
20-
LIBCPP_ASSERT(s.size() == i + 1);
20+
assert(s.size() == i + 1);
2121
}
2222

2323
// Check that all the chars were correctly copied during the realloc.
2424
for (unsigned i = 0; i < n; i++) {
25-
LIBCPP_ASSERT(s[i] == Char::from_integer(i));
25+
assert(s[i] == Char::from_integer(i));
2626
}
2727
}
2828

0 commit comments

Comments
 (0)