From e4614cf7995e6ee899bb41425f38e52158e86259 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 6 Mar 2020 09:34:50 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@14131 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/PdbTests/main.cpp | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/upptst/PdbTests/main.cpp b/upptst/PdbTests/main.cpp index 822c9c61b..a75adf584 100644 --- a/upptst/PdbTests/main.cpp +++ b/upptst/PdbTests/main.cpp @@ -1,6 +1,8 @@ #include #include #include +#include +#include using namespace Upp; @@ -71,8 +73,39 @@ void Test3(String *ptr_s) DDUMP(ptr_s); DUMP(*ptr_s); } + +void TestF() +{ + std::string ss = "key2"; + std::string ss2 = "key2"; +} + GUI_APP_MAIN { + { + std::set st; + for(int i = 0; i < 10000; i++) + st.insert(AsString(i).ToStd()); + } + { + std::map mp; + for(int i = 0; i < 10000; i++) + mp[~AsString(i)] = ~AsString(i); + } + { + std::multiset mst; + for(int i = 0; i < 10000; i++) + mst.insert(AsString(i).ToStd()); + } + { + std::multimap mmp; + for(int i = 0; i < 10000; i++) + mmp.insert(std::make_pair(~AsString(i), i)); + } + { + std::string ss = "key2"; +// std::string ss2 = "key2"; + } { Vector x; for(int i = 0; i < 100000; i++) @@ -281,9 +314,9 @@ GUI_APP_MAIN { WString h = "test"; - std::wstring x = h.ToStd(); + std::wstring wx = h.ToStd(); for(int i = 0; i < 10; i++) - x.append((wchar_t*)~h); + wx.append((wchar_t*)~h); } {