From 85cbb3ea2c58daf2657fcb625c682d86337ac196 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 29 Jul 2019 12:03:59 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@13513 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/LangInfo/LangInfo.cpp | 17 +++++++++++++++++ autotest/LangInfo/LangInfo.upp | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 autotest/LangInfo/LangInfo.cpp create mode 100644 autotest/LangInfo/LangInfo.upp diff --git a/autotest/LangInfo/LangInfo.cpp b/autotest/LangInfo/LangInfo.cpp new file mode 100644 index 000000000..1a5b0cce5 --- /dev/null +++ b/autotest/LangInfo/LangInfo.cpp @@ -0,0 +1,17 @@ +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + StdLogSetup(LOG_COUT|LOG_FILE); + const LanguageInfo& f = GetLanguageInfo(); + DUMP(f); + ASSERT(f.decimal_point == "."); + ASSERT(f.thousand_separator == ","); + ASSERT(f.month[0] == "January"); + ASSERT(f.smonth[0] == "Jan"); + ASSERT(f.day[0] == "Monday"); + ASSERT(f.sday[0] == "Mon"); + LOG("============= OK"); +} diff --git a/autotest/LangInfo/LangInfo.upp b/autotest/LangInfo/LangInfo.upp new file mode 100644 index 000000000..aaabd8cb0 --- /dev/null +++ b/autotest/LangInfo/LangInfo.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + LangInfo.cpp; + +mainconfig + "" = ""; +