mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@15732 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
95421bdacb
commit
d4d79b7ac6
3 changed files with 52 additions and 0 deletions
10
autotest/StdString/Etalon.log
Normal file
10
autotest/StdString/Etalon.log
Normal file
|
|
@ -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
|
||||
32
autotest/StdString/StdString.cpp
Normal file
32
autotest/StdString/StdString.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
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();
|
||||
}
|
||||
10
autotest/StdString/StdString.upp
Normal file
10
autotest/StdString/StdString.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
Etalon.log,
|
||||
StdString.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue