refactor: migrate rust-like ops.
- migrate rust-like ops. - migrate testbench for them but not finished.
This commit is contained in:
13
testbench/yycc/num/op.cpp
Normal file
13
testbench/yycc/num/op.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#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));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user