mirror of
https://github.com/microsoft/GSL.git
synced 2026-05-04 03:40:54 +02:00
Merge remote-tracking branch 'origin' into dev/neilmac/indextype
This commit is contained in:
@@ -79,6 +79,14 @@ SUITE(string_view_tests)
|
||||
}
|
||||
}
|
||||
|
||||
TEST(TestConstructFromConstCharPointer)
|
||||
{
|
||||
const char* s = "Hello";
|
||||
cstring_view<> v = ensure_z(s);
|
||||
CHECK(v.length() == 5);
|
||||
CHECK(v.used_length() == v.length());
|
||||
}
|
||||
|
||||
TEST(TestConversionToConst)
|
||||
{
|
||||
char stack_string[] = "Hello";
|
||||
|
||||
Reference in New Issue
Block a user