forked from Alepha/Alepha
Include the tests for dumbhash!
This commit is contained in:
@ -50,5 +50,7 @@ add_subdirectory( Capabilities.test )
|
|||||||
add_subdirectory( delimited_list.test )
|
add_subdirectory( delimited_list.test )
|
||||||
add_subdirectory( UniversalAggregate.test )
|
add_subdirectory( UniversalAggregate.test )
|
||||||
|
|
||||||
|
add_subdirectory( dumbhash.test )
|
||||||
|
|
||||||
# Sample applications
|
# Sample applications
|
||||||
add_executable( example example.cc )
|
add_executable( example example.cc )
|
||||||
|
|||||||
@ -11,14 +11,14 @@ static_assert( __cplusplus > 2020'99 );
|
|||||||
|
|
||||||
#include <Alepha/Testing/test.h>
|
#include <Alepha/Testing/test.h>
|
||||||
#include <Alepha/Testing/TableTest.h>
|
#include <Alepha/Testing/TableTest.h>
|
||||||
#include <Alepha/Utility/evaluation.h>
|
#include <Alepha/Utility/evaluation_helpers.h>
|
||||||
#include <Alepha/comparisons.h>
|
#include <Alepha/comparisons.h>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
using namespace Alepha::Testing::exports;
|
using namespace Alepha::Testing::exports;
|
||||||
using namespace Alepha::Utility::exports::evaluation;
|
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||||
using namespace Alepha::exports::types;
|
using namespace Alepha::exports::types_m;
|
||||||
|
|
||||||
using hash_type= std::uint64_t;
|
using hash_type= std::uint64_t;
|
||||||
|
|
||||||
@ -60,6 +60,9 @@ namespace
|
|||||||
|
|
||||||
enum { Unit };
|
enum { Unit };
|
||||||
|
|
||||||
|
// NOTE: The pretty-function trailing `]` character is hashed, too,
|
||||||
|
// as we need to have arbitrary length `constexpr` viewable text...
|
||||||
|
// thus we need a `const char *` returned from this function.
|
||||||
template< typename T >
|
template< typename T >
|
||||||
constexpr const char *
|
constexpr const char *
|
||||||
typesig()
|
typesig()
|
||||||
|
|||||||
1
dumbhash.test/CMakeLists.txt
Normal file
1
dumbhash.test/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
unit_test( 0 )
|
||||||
Reference in New Issue
Block a user