2024-07-12 22:29:04 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <test/includes.hpp>
|
|
|
|
|
|
|
|
namespace test {
|
|
|
|
namespace core {
|
|
|
|
void test_int_exp() {
|
|
|
|
BEGIN_TEST();
|
|
|
|
|
2024-08-07 15:13:53 +08:00
|
|
|
assert_values_match(125L, __nac3_int_exp_impl<int64_t>(5, 3));
|
|
|
|
assert_values_match(3125L, __nac3_int_exp_impl<int64_t>(5, 5));
|
2024-07-12 22:29:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void run() { test_int_exp(); }
|
|
|
|
} // namespace core
|
|
|
|
} // namespace test
|