20 #include <ns3/antenna-model.h>
44 static std::string BuildNameString(
double a);
53 void DoRun()
override;
62 std::ostringstream oss;
63 oss <<
"angle = " << a <<
" degrees";
102 void DoRun()
override;
111 std::ostringstream oss;
112 oss <<
"angle = " << a <<
" degrees";
TestSuite: degree to radians (and vice-versa) conversions.
DegreesRadiansTestSuite()
Test degree to radians conversion.
double m_b
expected angle in radians
double m_a
angle in degrees
void DoRun() override
Implementation to actually run this TestCase.
DegreesToRadiansTestCase(double a, double b)
Constructor.
static std::string BuildNameString(double a)
Build the test name.
Test radians to degree conversion.
void DoRun() override
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.