19class TestSfnSfTestCase :
public TestCase
22 TestSfnSfTestCase(uint16_t num,
const std::string& name)
29 void DoRun()
override;
30 uint16_t m_numerology{0};
34TestSfnSfTestCase::DoRun()
36 SfnSf sfn(0, 0, 0, m_numerology);
38 for (uint32_t i = 0; i < 9999; ++i)
40 NS_TEST_ASSERT_MSG_EQ(sfn.Normalize(), i,
"Mm");
45class TestSfnSf :
public TestSuite
49 : TestSuite(
"nr-test-sfnsf", Type::UNIT)
51 AddTestCase(
new TestSfnSfTestCase(0,
"SfnSf TestAdd with num 2"), Duration::QUICK);
52 AddTestCase(
new TestSfnSfTestCase(1,
"SfnSf TestAdd with num 2"), Duration::QUICK);
53 AddTestCase(
new TestSfnSfTestCase(2,
"SfnSf TestAdd with num 2"), Duration::QUICK);
54 AddTestCase(
new TestSfnSfTestCase(3,
"SfnSf TestAdd with num 2"), Duration::QUICK);
55 AddTestCase(
new TestSfnSfTestCase(4,
"SfnSf TestAdd with num 2"), Duration::QUICK);
59static TestSfnSf testSfnSf;