2024-07-12 22:29:04 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core.hpp"
|
|
|
|
#include "../irrt/core.hpp"
|
|
|
|
|
|
|
|
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-13 23:58:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void run_test_core() {
|
|
|
|
test_int_exp();
|
2024-07-12 22:29:04 +08:00
|
|
|
}
|