more buffer_view using

This commit is contained in:
2019-08-08 23:57:38 +07:00
parent f476eee943
commit c5dd5ef49a
6 changed files with 25 additions and 33 deletions

View File

@@ -220,6 +220,11 @@ TEST_CASE("buffer_view") {
buffer_view v5(b2);
REQUIRE(v5.data() == b2.data());
REQUIRE(v5.size() == 20);
str32 b3 = make_utf32("hello");
buffer_view v6(b3);
REQUIRE(v6.data() == b3.data());
REQUIRE(v6.size() == 20);
}
{
const char* s0 = "hell";