Merge remote-tracking branch 'origin' into dev/neilmac/indextype

This commit is contained in:
Neil MacIntosh
2015-11-02 19:01:59 -08:00
4 changed files with 27 additions and 6 deletions
+8
View File
@@ -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";