Replace Boost.Test with lightweight_test from Boost.Core. Modified version of https://github.com/boostorg/array/pull/6. Thanks to mloskot for the patch.

This commit is contained in:
Marshall Clow
2019-07-10 15:25:46 -07:00
parent b279a9005b
commit 453cf59eb9
8 changed files with 55 additions and 62 deletions

View File

@ -13,9 +13,6 @@
#include <array>
#endif
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#ifndef BOOST_NO_CXX11_CONSTEXPR
constexpr boost::array<int, 10> arr {{ 0,1,2,3,4,5,6,7,8,9 }};
constexpr std::array<int, 10> arr_std {{ 0,1,2,3,4,5,6,7,8,9 }};
@ -26,7 +23,7 @@ void sink ( T t ) {}
template <typename T, size_t N>
void sink ( boost::array<T,N> &arr ) {}
BOOST_AUTO_TEST_CASE( test_main )
int main()
{
// constexpr int two = arr_std.at (2);
constexpr int three = arr.at (3);
@ -36,7 +33,7 @@ BOOST_AUTO_TEST_CASE( test_main )
}
#else // no constexpr means no constexpr tests!
BOOST_AUTO_TEST_CASE( test_main )
int main()
{
}
#endif