23 #include <ns3/antenna-model.h>
34 static std::string BuildNameString (
Vector v);
38 virtual void DoRun (
void);
44 std::string OneVectorConstructorTestCase::BuildNameString (
Vector v)
46 std::ostringstream oss;
52 OneVectorConstructorTestCase::OneVectorConstructorTestCase (Vector v, Angles a)
53 : TestCase (BuildNameString (v)),
63 NS_TEST_EXPECT_MSG_EQ_TOL ( a.
phi, m_a.
phi, 1e-10,
"incorrect phi");
64 NS_TEST_EXPECT_MSG_EQ_TOL ( a.
theta, m_a.
theta, 1e-10,
"incorrect theta");
78 virtual void DoRun (
void);
85 std::string TwoVectorsConstructorTestCase::BuildNameString (
Vector v,
Vector o)
87 std::ostringstream oss;
88 oss <<
" v = " << v <<
", o = " << o;
93 TwoVectorsConstructorTestCase::TwoVectorsConstructorTestCase (Vector v, Vector o, Angles a)
94 : TestCase (BuildNameString (v, o)),
105 NS_TEST_EXPECT_MSG_EQ_TOL ( a.
phi, m_a.
phi, 1e-10,
"incorrect phi");
106 NS_TEST_EXPECT_MSG_EQ_TOL ( a.
theta, m_a.
theta, 1e-10,
"incorrect theta");
120 AnglesTestSuite::AnglesTestSuite ()
211 static AnglesTestSuite staticAnglesTestSuiteInstance;
virtual void DoRun(void)
Implementation to actually run this test case.
virtual void DoRun(void)
Implementation to actually run this test case.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual test case to this test suite.