From d2b6643e44ffd7c95a2cb4b34723ad71a71f8262 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 15 Mar 2020 15:54:18 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@14167 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/PdbAll/PdbAll.cpp | 36 ++++++++++++++++++++++++++++++++++ upptst/PdbAll/PdbAll.upp | 10 ++++++++++ upptst/PdbTests2/PdbTests2.upp | 9 +++++++++ upptst/PdbTests2/main.cpp | 13 ++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 upptst/PdbAll/PdbAll.cpp create mode 100644 upptst/PdbAll/PdbAll.upp create mode 100644 upptst/PdbTests2/PdbTests2.upp create mode 100644 upptst/PdbTests2/main.cpp diff --git a/upptst/PdbAll/PdbAll.cpp b/upptst/PdbAll/PdbAll.cpp new file mode 100644 index 000000000..067a0acf0 --- /dev/null +++ b/upptst/PdbAll/PdbAll.cpp @@ -0,0 +1,36 @@ +#include +#include +#include +#include +#include + +using namespace Upp; + +GUI_APP_MAIN +{ + Date date = GetSysDate(); + Time time = GetSysTime(); + Color color = LtRed(); + RGBA rgba = LtRed(); + Font fnt = Arial(); + String string = "Hello world!"; + WString wstring = "Hello world!"; + Vector vector { "I", "II", "III", "IV", "V" }; + BiVector bivector { "I", "II", "III", "IV", "V" }; + Array array { "I", "II", "III", "IV", "V" }; + BiArray biarray { "I", "II", "III", "IV", "V" }; + Index index { "I", "II", "III", "IV", "V" }; + VectorMap vectormap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + ArrayMap arraymap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + ValueArray valuearray { "I", "II", "III", "IV", "V" }; + ValueMap valuemap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + Value value = valuemap; + + std::string std_string = "Hello world!"; + std::wstring std_wstring = wstring.ToStd(); + std::vector std_vector { "I", "II", "III", "IV", "V" }; + std::set std_set { "I", "II", "III", "IV", "V" }; + std::multiset std_multiset { "I", "II", "III", "IV", "V" }; + std::map std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + std::multimap std_multimap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; +} diff --git a/upptst/PdbAll/PdbAll.upp b/upptst/PdbAll/PdbAll.upp new file mode 100644 index 000000000..723dc5633 --- /dev/null +++ b/upptst/PdbAll/PdbAll.upp @@ -0,0 +1,10 @@ +uses + Core, + CtrlLib; + +file + PdbAll.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/PdbTests2/PdbTests2.upp b/upptst/PdbTests2/PdbTests2.upp new file mode 100644 index 000000000..ee38c045f --- /dev/null +++ b/upptst/PdbTests2/PdbTests2.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + main.cpp; + +mainconfig + "" = ""; + diff --git a/upptst/PdbTests2/main.cpp b/upptst/PdbTests2/main.cpp new file mode 100644 index 000000000..3fb0d4ef4 --- /dev/null +++ b/upptst/PdbTests2/main.cpp @@ -0,0 +1,13 @@ +#include +#include +#include +#include +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + VectorMap vectormap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + std::map std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; +}