diff --git a/autotest/StdString/Etalon.log b/autotest/StdString/Etalon.log new file mode 100644 index 000000000..0f9547c5e --- /dev/null +++ b/autotest/StdString/Etalon.log @@ -0,0 +1,10 @@ +* C:\upp\out\autotest\MSBT19.Debug.Debug_Full\StdString.exe 03.02.2021 17:43:07, user: cxl + +sh = Hello world +h = Hello world +v = Hello world +sh = Hello world +sh = Hello world +h = Hello world +v = Hello world +sh = Hello world diff --git a/autotest/StdString/StdString.cpp b/autotest/StdString/StdString.cpp new file mode 100644 index 000000000..fe4498806 --- /dev/null +++ b/autotest/StdString/StdString.cpp @@ -0,0 +1,32 @@ +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + StdLogSetup(LOG_COUT|LOG_FILE); + { + String h = "Hello world"; + std::string sh = h; + DDUMP(sh); + h = sh; + DDUMP(h); + Value v = sh; + DDUMP(v); + sh = v; + DDUMP(sh); + } + + { + WString h = "Hello world"; + std::wstring sh = h; + DDUMP(sh); + h = sh; + DDUMP(h); + Value v = sh; + DDUMP(v); + sh = v; + DDUMP(sh); + } + CheckLogEtalon(); +} diff --git a/autotest/StdString/StdString.upp b/autotest/StdString/StdString.upp new file mode 100644 index 000000000..b9fdfb3f8 --- /dev/null +++ b/autotest/StdString/StdString.upp @@ -0,0 +1,10 @@ +uses + Core; + +file + Etalon.log, + StdString.cpp; + +mainconfig + "" = ""; +