String stream test << operator in etl namespace

This commit is contained in:
John Wellbelove 2020-08-08 11:12:52 +01:00
parent 9804af3288
commit 254a8d4035
5 changed files with 67 additions and 13 deletions

View File

@ -39,7 +39,7 @@ SOFTWARE.
#define ETL_VERSION_MAJOR 18
#define ETL_VERSION_MINOR 12
#define ETL_VERSION_PATCH 3
#define ETL_VERSION_PATCH 4
#define ETL_VERSION ETL_STRINGIFY(ETL_VERSION_MAJOR) "." ETL_STRINGIFY(ETL_VERSION_MINOR) "." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_W ETL_STRINGIFY(ETL_VERSION_MAJOR) L"." ETL_STRINGIFY(ETL_VERSION_MINOR) L"." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_U16 ETL_STRINGIFY(ETL_VERSION_MAJOR) u"." ETL_STRINGIFY(ETL_VERSION_MINOR) u"." ETL_STRINGIFY(ETL_VERSION_PATCH)

View File

@ -1,6 +1,6 @@
{
"name": "Embedded Template Library",
"version": "18.12.3",
"version": "18.12.4",
"authors": {
"name": "John Wellbelove",
"email": "john.wellbelove@etlcpp.com"

View File

@ -1,5 +1,5 @@
name=Embedded Template Library
version=18.12.3
version=18.12.4
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
license=MIT

View File

@ -1,3 +1,7 @@
===============================================================================
18.12.4
Resolve clang 9 compatibility issues.
===============================================================================
18.12.3
Resolve 0U constant ambiguity in string utility tests

View File

@ -533,14 +533,39 @@ namespace
{
DataNDC data(SIZE, N0);
DataNDC::iterator first = data.begin() + 1;
DataNDC::iterator second = data.begin() + 4;
DataNDC::iterator first = data.begin() + 1;
DataNDC::iterator second = data.begin() + 1;
DataNDC::iterator third = data.begin() + 4;
CHECK(first < second);
CHECK(first == second);
CHECK(second == first);
CHECK(!(first == third));
CHECK(!(third == first));
CHECK(!(first != second));
CHECK(!(second != first));
CHECK(first != third);
CHECK(third != first);
CHECK(!(first < second));
CHECK(!(second < first));
CHECK(first < third);
CHECK(!(third < first));
CHECK(second > first);
CHECK(!(first > second));
CHECK(first <= second);
CHECK(second <= first);
CHECK(first <= third);
CHECK(!(third <= first));
CHECK(!(first > second));
CHECK(!(second > first));
CHECK(!(first > third));
CHECK(third > first);
CHECK(first >= second);
CHECK(second >= first);
CHECK(!(first >= third));
CHECK(third >= first);
}
//*************************************************************************
@ -548,14 +573,39 @@ namespace
{
DataNDC data(SIZE, N0);
DataNDC::const_iterator first = data.cbegin() + 1;
DataNDC::const_iterator second = data.cbegin() + 4;
DataNDC::const_iterator first = data.begin() + 1;
DataNDC::const_iterator second = data.begin() + 1;
DataNDC::const_iterator third = data.begin() + 4;
CHECK(first < second);
CHECK(first == second);
CHECK(second == first);
CHECK(!(first == third));
CHECK(!(third == first));
CHECK(!(first != second));
CHECK(!(second != first));
CHECK(first != third);
CHECK(third != first);
CHECK(!(first < second));
CHECK(!(second < first));
CHECK(first < third);
CHECK(!(third < first));
CHECK(second > first);
CHECK(!(first > second));
CHECK(first <= second);
CHECK(second <= first);
CHECK(first <= third);
CHECK(!(third <= first));
CHECK(!(first > second));
CHECK(!(second > first));
CHECK(!(first > third));
CHECK(third > first);
CHECK(first >= second);
CHECK(second >= first);
CHECK(!(first >= third));
CHECK(third >= first);
}
//*************************************************************************