Simplify get_lowest_layer test

This commit is contained in:
Vinnie Falco
2017-04-30 11:26:01 -07:00
parent 707f5c867e
commit 3c0d2a998e
2 changed files with 54 additions and 67 deletions

View File

@@ -3,6 +3,7 @@
* Refactor static_string
* Refactor base64
* Use static_string for WebSocket handshakes
* Simplify get_lowest_layer test
--------------------------------------------------------------------------------

View File

@@ -8,16 +8,11 @@
// Test that header file is self-contained.
#include <beast/core/detail/get_lowest_layer.hpp>
#include <beast/unit_test/suite.hpp>
#include <type_traits>
namespace beast {
namespace detail {
class get_lowest_layer_test
: public beast::unit_test::suite
{
public:
struct F1
{
};
@@ -46,9 +41,6 @@ public:
get_lowest_layer<next_layer_type>::type;
};
void
run()
{
static_assert(! has_lowest_layer<F1>::value, "");
static_assert(! has_lowest_layer<F2>::value, "");
static_assert(has_lowest_layer<F3<F1>>::value, "");
@@ -78,11 +70,5 @@ public:
static_assert(std::is_same<
get_lowest_layer<F4<F3<F2>>>::type, F2>::value, "");
pass();
}
};
BEAST_DEFINE_TESTSUITE(get_lowest_layer,core,beast);
} // detail
} // beast