- Adjusted Formatting of tests
- Finished map implementation and unit tests TODO: Threading
This commit is contained in:
@@ -22,35 +22,30 @@
|
||||
#include <fennec/lang/hashing.h>
|
||||
#include "../../test.h"
|
||||
|
||||
namespace fennec
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
namespace test
|
||||
{
|
||||
inline void fennec_test_lang_hashing() {
|
||||
|
||||
inline void fennec_test_lang_hashing() {
|
||||
size_t num = 61;
|
||||
float_t numf = bit_cast<float>((uint32_t)num);
|
||||
double_t numd = bit_cast<double>(num);
|
||||
size_t exp = hash<size_t>()(num);
|
||||
|
||||
size_t num = 61;
|
||||
float_t numf = bit_cast<float>((uint32_t)num);
|
||||
double_t numd = bit_cast<double>(num);
|
||||
size_t exp = hash<size_t>()(num);
|
||||
fennec_test_run(hash<int8_t>()(num), exp);
|
||||
fennec_test_run(hash<uint8_t>()(num), exp);
|
||||
fennec_test_run(hash<int16_t>()(num), exp);
|
||||
fennec_test_run(hash<uint16_t>()(num), exp);
|
||||
fennec_test_run(hash<int32_t>()(num), exp);
|
||||
fennec_test_run(hash<uint32_t>()(num), exp);
|
||||
fennec_test_run(hash<int64_t>()(num), exp);
|
||||
fennec_test_run(hash<uint64_t>()(num), exp);
|
||||
|
||||
fennec_test_run(hash<int8_t>()(num), exp);
|
||||
fennec_test_run(hash<uint8_t>()(num), exp);
|
||||
fennec_test_run(hash<int16_t>()(num), exp);
|
||||
fennec_test_run(hash<uint16_t>()(num), exp);
|
||||
fennec_test_run(hash<int32_t>()(num), exp);
|
||||
fennec_test_run(hash<uint32_t>()(num), exp);
|
||||
fennec_test_run(hash<int64_t>()(num), exp);
|
||||
fennec_test_run(hash<uint64_t>()(num), exp);
|
||||
fennec_test_spacer(1);
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
fennec_test_run(hash<float_t>()(numf), exp);
|
||||
fennec_test_run(hash<double_t>()(numd), exp);
|
||||
}
|
||||
|
||||
}
|
||||
fennec_test_run(hash<float_t>()(numf), exp);
|
||||
fennec_test_run(hash<double_t>()(numd), exp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user