23 #include <ns3/antenna-model.h>
44 static std::string BuildNameString (
double a);
54 virtual void DoRun (
void);
62 std::ostringstream oss;
63 oss <<
"angle = " << a <<
" degrees";
107 virtual void DoRun (
void);
115 std::ostringstream oss;
116 oss <<
"angle = " << a <<
" degrees";
TestSuite: degree to radians (and viceversa) conversions.
DegreesRadiansTestSuite()
Test degree to radians conversion.
double m_b
expected angle in radians
virtual void DoRun(void)
Implementation to actually run this TestCase.
double m_a
angle in degrees
DegreesToRadiansTestCase(double a, double b)
Constructor.
static std::string BuildNameString(double a)
Build the test name.
Test radians to degree conversion.
virtual void DoRun(void)
Implementation to actually run this TestCase.
double m_a
angle in radians
static std::string BuildNameString(double a)
Build the test name.
RadiansToDegreesTestCase(double a, double b)
Constructor.
double m_b
expected angle in degrees
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double DegreesToRadians(double degrees)
converts degrees to radians
double RadiansToDegrees(double radians)
converts radians to degrees
static DegreesRadiansTestSuite g_staticDegreesRadiansTestSuiteInstance
Static variable for test initialization.