#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. | |
| #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. | |
| #define | NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL(actual, expected, tol, msg, file, line) |
| #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.
| actual | the actual value obtained by the simulator |
| expected | the expected value obtained by off-line calculations |
| tol | the tolerance |
| msg | the message to print if the test fails |
Definition at line 40 of file spectrum-test.h.
Referenced by ns3::SpectrumValueTestCase::DoRun(), and ns3::LteSpectrumModelTestCase::DoRun().
| #define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL_INTERNAL | ( | actual, | |
| expected, | |||
| tol, | |||
| msg, | |||
| file, | |||
| line | |||
| ) |
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.
| actual | the actual value obtained by the simulator |
| expected | the expected value obtained by off-line calculations |
| tol | the tolerance |
| msg | the message to print if the test fails |
Definition at line 104 of file spectrum-test.h.
Referenced by ns3::SpectrumValueTestCase::DoRun(), ns3::LteUplinkSinrTestCase::DoRun(), ns3::LteDownlinkSinrTestCase::DoRun(), ns3::LteNoisePsdTestCase::DoRun(), and ns3::LteTxPsdTestCase::DoRun().
| #define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL_INTERNAL | ( | actual, | |
| expected, | |||
| tol, | |||
| msg, | |||
| file, | |||
| line | |||
| ) |
Definition at line 111 of file spectrum-test.h.