Files
YYCCommonplace/testbench/yycc/num/op.cpp
yyc12345 fcac886f07 refactor: migrate rust-like ops.
- migrate rust-like ops.
- migrate testbench for them but not finished.
2025-08-05 13:53:59 +08:00

14 lines
230 B
C++

#include <gtest/gtest.h>
#include <yycc.hpp>
#include <yycc/num/op.hpp>
#define OP ::yycc::num::op
namespace yycctest::num::op {
TEST(NumOp, DivCeil) {
EXPECT_EQ(OP::div_ceil<uint32_t>(7, 4), UINT32_C(2));
}
}