2024-07-12 22:29:04 +08:00
|
|
|
#pragma once
|
|
|
|
|
2024-07-14 17:09:48 +08:00
|
|
|
#include <test/core.hpp>
|
2024-07-15 11:42:01 +08:00
|
|
|
#include <irrt_everything.hpp>
|
2024-07-12 22:29:04 +08:00
|
|
|
|
2024-07-15 11:42:01 +08:00
|
|
|
namespace test {
|
|
|
|
namespace core {
|
2024-07-12 22:29:04 +08:00
|
|
|
void test_int_exp() {
|
|
|
|
BEGIN_TEST();
|
|
|
|
|
|
|
|
assert_values_match(125, __nac3_int_exp_impl<int32_t>(5, 3));
|
|
|
|
assert_values_match(3125, __nac3_int_exp_impl<int32_t>(5, 5));
|
2024-07-14 23:16:28 +08:00
|
|
|
}
|
2024-07-15 11:42:01 +08:00
|
|
|
|
|
|
|
void run() {
|
|
|
|
test_int_exp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|