A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

#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().

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

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

#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 104 of file spectrum-test.h.

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

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

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