A Discrete-Event Network Simulator
API
spectrum-test.h File Reference
#include <ns3/test.h>
#include <ns3/spectrum-value.h>
+ Include dependency graph for spectrum-test.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL(actual, expected, tol, msg)   NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL (actual, expected, tol, msg, __FILE__, __LINE__)
 Test if two SpectrumModel instances are equal within a given tolerance. More...
 
#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL(actual, expected, tol, msg, file, line)
 
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL(actual, expected, tol, msg)   NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL (actual, expected, tol, msg, __FILE__, __LINE__)
 Test if two SpectrumValue instances are equal within a given tolerance. More...
 
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL(actual, expected, tol, msg, file, line)
 

Macro Definition Documentation

◆ NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL

#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL (   actual,
  expected,
  tol,
  msg 
)    NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL (actual, expected, tol, msg, __FILE__, __LINE__)

Test if two SpectrumModel instances are equal within a given tolerance.

This test compares component-by-component the two SpectrumModel instances; if any pair of components differs by more than the given tolerance, the test fails.

Parameters
actualthe actual value obtained by the simulator
expectedthe expected value obtained by off-line calculations
tolthe tolerance
msgthe message to print if the test fails

Definition at line 40 of file spectrum-test.h.

Referenced by SpectrumValueTestCase::DoRun(), and LteSpectrumModelTestCase::DoRun().

◆ NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL

#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL (   actual,
  expected,
  tol,
  msg,
  file,
  line 
)

Definition at line 44 of file spectrum-test.h.

◆ NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL

#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL (   actual,
  expected,
  tol,
  msg 
)    NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL (actual, expected, tol, msg, __FILE__, __LINE__)

Test if two SpectrumValue instances are equal within a given tolerance.

This test compares component-by-component the two SpectrumValue instances; if any pair of components differs by more than the given tolerance, the test fails.

Parameters
actualthe actual value obtained by the simulator
expectedthe expected value obtained by off-line calculations
tolthe tolerance
msgthe message to print if the test fails

Definition at line 101 of file spectrum-test.h.

Referenced by SpectrumValueTestCase::DoRun(), LteDownlinkDataSinrTestCase::DoRun(), LteUplinkDataSinrTestCase::DoRun(), LteDownlinkPowerControlSpectrumValueTestCase::DoRun(), LteDownlinkCtrlSinrTestCase::DoRun(), LteNoisePsdTestCase::DoRun(), LteUplinkSrsSinrTestCase::DoRun(), and LteTxPsdTestCase::DoRun().

◆ NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL

#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL (   actual,
  expected,
  tol,
  msg,
  file,
  line 
)

Definition at line 105 of file spectrum-test.h.