mirror of
https://github.com/microsoft/GSL.git
synced 2026-07-09 10:00:51 +02:00
reviewed the pr in its entirety and made some slight modifications. Removed all members and fields marked as deprecated.
This commit is contained in:
@@ -1206,12 +1206,12 @@ TEST(string_span_tests, as_bytes)
|
||||
EXPECT_TRUE(bs.size() == s.size_bytes());
|
||||
}
|
||||
|
||||
TEST(string_span_tests, as_writeable_bytes)
|
||||
TEST(string_span_tests, as_writable_bytes)
|
||||
{
|
||||
wchar_t buf[]{L"qwerty"};
|
||||
wzstring_span<> v(buf);
|
||||
const auto s = v.as_string_span();
|
||||
const auto bs = as_writeable_bytes(s);
|
||||
const auto bs = as_writable_bytes(s);
|
||||
EXPECT_TRUE(static_cast<const void*>(bs.data()) == static_cast<const void*>(s.data()));
|
||||
EXPECT_TRUE(bs.size() == s.size_bytes());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user