mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Remove redundant ETL_USING_STL in tests (#1559)
This commit is contained in:
parent
e34ba686ba
commit
e2a9f2b10f
@ -32,20 +32,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-2152
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-2152 with no padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-3501
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-3501 with no padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648-URL with no padding
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648-URL with no padding
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648-URL with no padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648-URL with padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648 with no padding
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_decoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648 with no padding
|
||||
//*****************************************************************************
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648 with no padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -30,20 +30,16 @@ SOFTWARE.
|
||||
|
||||
#include "etl/base64_encoder.h"
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/string.h"
|
||||
#include "etl/vector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ETL_USING_STL
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#include "etl/integral_limits.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// Encode/decode using RFC-4648 with padding
|
||||
// Using minimum buffer size, with callback.
|
||||
|
||||
@ -67,7 +67,7 @@ namespace
|
||||
CHECK(data.crbegin() == data.crend());
|
||||
}
|
||||
|
||||
#if ETL_USING_STL
|
||||
#if ETL_HAS_INITIALIZER_LIST
|
||||
//*************************************************************************
|
||||
TEST(test_constructor_from_literal)
|
||||
{
|
||||
|
||||
@ -99,7 +99,7 @@ namespace
|
||||
CHECK(data.crbegin() == data.crend());
|
||||
}
|
||||
|
||||
#if ETL_USING_STL
|
||||
#if ETL_HAS_INITIALIZER_LIST
|
||||
//*************************************************************************
|
||||
TEST(test_constructor_from_literal)
|
||||
{
|
||||
|
||||
@ -187,7 +187,7 @@ namespace
|
||||
CHECK_EQUAL(Registry_Size, registry.max_size());
|
||||
}
|
||||
|
||||
#if ETL_USING_STL
|
||||
#if ETL_HAS_INITIALIZER_LIST
|
||||
//*************************************************************************
|
||||
TEST(test_initializer_list_construction)
|
||||
{
|
||||
|
||||
@ -135,7 +135,6 @@ namespace
|
||||
CHECK_EQUAL(*c, v);
|
||||
}
|
||||
|
||||
#if ETL_USING_STL
|
||||
//*************************************************************************
|
||||
TEST(test_midpoint_std_random_access_iterator)
|
||||
{
|
||||
@ -163,7 +162,6 @@ namespace
|
||||
|
||||
CHECK_EQUAL(*c, v);
|
||||
}
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_lerp_floating_point)
|
||||
|
||||
@ -41,7 +41,7 @@ SOFTWARE.
|
||||
|
||||
// Issue #1391: include <ranges> when available to verify etl::operator|
|
||||
// does not conflict with std::ranges::operator|.
|
||||
#if ETL_USING_STL && ETL_USING_CPP20 && defined(__has_include)
|
||||
#if ETL_USING_CPP20 && defined(__has_include)
|
||||
#if __has_include(<ranges>)
|
||||
#include <ranges>
|
||||
#endif
|
||||
|
||||
@ -759,6 +759,7 @@ namespace
|
||||
CHECK(etl::is_fundamental<long double>::value == std::is_fundamental<long double>::value);
|
||||
CHECK(etl::is_fundamental<Test>::value == std::is_fundamental<Test>::value);
|
||||
#if ETL_USING_STL
|
||||
// etl::is_fundamental does not report std::nullptr_t as fundamental when not using the STL.
|
||||
CHECK(etl::is_fundamental<std::nullptr_t>::value == std::is_fundamental<std::nullptr_t>::value);
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user