mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
feat(string): add copy helper method for RCString source
This commit is contained in:
parent
467c0366e1
commit
54dc7e849f
3 changed files with 13 additions and 0 deletions
|
|
@ -9,6 +9,14 @@ TEST_CASE("RCString::Copy", "[string]") {
|
|||
rcStr.Copy(str);
|
||||
REQUIRE(!SStrCmp(str, rcStr.GetString(), STORM_MAX_STR));
|
||||
}
|
||||
|
||||
SECTION("copies source RCString") {
|
||||
RCString rcStr1;
|
||||
rcStr1.Copy("foo");
|
||||
RCString rcStr2;
|
||||
rcStr2.Copy(rcStr1);
|
||||
REQUIRE(!SStrCmp(rcStr1.GetString(), rcStr2.GetString(), STORM_MAX_STR));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("RCString::GetString", "[string]") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue