Skip to content

Commit

Permalink
Add growing from sso to allocated state
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Aug 26, 2021
1 parent a902ba7 commit a5e7657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/std/tests/P0980R1_constexpr_strings/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,10 @@ constexpr bool test_interface() {

resized.resize(6, CharType{'a'});
assert(equalRanges(resized, "Helaaa"sv));

// ensure we grow properly from small string
resized.resize(26, CharType{'a'});
assert(equalRanges(resized, "Helaaaaaaaaaaaaaaaaaaaaaaa"sv));
}

{ // swap
Expand Down

0 comments on commit a5e7657

Please sign in to comment.