test/src/test_mutable_storage.cpp
/// Test that we can convert a non-const std::string to a
/// storage::mutable_storage object
Test that we can convert a non-const std::string to a
storage::mutable_storage object
Test that we can convert a non - const std :: string to a storage :: mutable_storage object
TEST(test_mutable_storage, convert_string)
{
    std::string str("test");
    storage::mutable_storage m = storage::storage(str);
    EXPECT_EQ(str.size(), m.size());
    EXPECT_EQ((uint8_t*) str.data(), m.data());
}
TEST ( test_mutable_storage , convert_string ) { std :: string str ( " " ) ; storage :: mutable_storage m = storage :: storage ( str ) ; EXPECT_EQ ( str . size ( ) , m . size ( ) ) ; EXPECT_EQ ( ( uint8_t * ) str . data ( ) , m . data ( ) ) ; }
Test that we can convert a non-const std::string to a
storage::mutable_storage object
Test that we can convert a non - const std :: string to a storage :: mutable_storage object