diff --git a/tests/host/core/test_string.cpp b/tests/host/core/test_string.cpp index df08d9a00e..821feed30a 100644 --- a/tests/host/core/test_string.cpp +++ b/tests/host/core/test_string.cpp @@ -17,6 +17,7 @@ #include #include #include +#include TEST_CASE("String::trim", "[core][String]") { @@ -440,3 +441,14 @@ TEST_CASE("Issue #5949 - Overlapping src/dest in replace", "[core][String]") blah.replace(blah, blah); REQUIRE(blah == "blah"); } + + +TEST_CASE("Issue #2736 - StreamString SSO fix", "[core][StreamString]") +{ + StreamString s; + s.print('{'); + s.print('\"'); + s.print(String("message")); + s.print('\"'); + REQUIRE(blah == "{\"message\""); +}