Skip to content

Commit d646589

Browse files
committed
naming
1 parent 7ce820a commit d646589

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/host/core/test_string.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ TEST_CASE("String::move", "[core][String]")
2323
{
2424
const char buffer[] = "this string goes over the sso limit";
2525

26-
String copy;
27-
String origin(buffer);
26+
String target;
27+
String source(buffer);
2828

29-
copy = std::move(origin);
30-
REQUIRE(origin.c_str() != nullptr);
31-
REQUIRE(copy == buffer);
29+
target = std::move(source);
30+
REQUIRE(source.c_str() != nullptr);
31+
REQUIRE(!source.length());
32+
REQUIRE(target == buffer);
3233
}
3334

3435
TEST_CASE("String::trim", "[core][String]")

0 commit comments

Comments
 (0)