diff --git a/tests/host/core/test_string.cpp b/tests/host/core/test_string.cpp index 2d8ced73fc..99e9fd1738 100644 --- a/tests/host/core/test_string.cpp +++ b/tests/host/core/test_string.cpp @@ -19,6 +19,18 @@ #include #include +TEST_CASE("String::move", "[core][String]") +{ + const char buffer[] = "this string goes over the sso limit"; + + String copy; + String origin(buffer); + + copy = std::move(origin); + REQUIRE(origin.c_str() != nullptr); + REQUIRE(copy == buffer); +} + TEST_CASE("String::trim", "[core][String]") { String str;