From d4d79b7ac623014170aa71706edcc4e3530f5b31 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 3 Feb 2021 16:44:46 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@15732 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/StdString/Etalon.log | 10 ++++++++++ autotest/StdString/StdString.cpp | 32 ++++++++++++++++++++++++++++++++ autotest/StdString/StdString.upp | 10 ++++++++++ 3 files changed, 52 insertions(+) create mode 100644 autotest/StdString/Etalon.log create mode 100644 autotest/StdString/StdString.cpp create mode 100644 autotest/StdString/StdString.upp 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 + "" = ""; +