Macros | |
#define | NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL(actual, expected, tol, msg) |
Test if two SpectrumModel instances are equal within a given tolerance. | |
#define | NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL(actual, expected, tol, msg) |
Test if two SpectrumValue instances are equal within a given tolerance. | |
#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL | ( | actual, | |
expected, | |||
tol, | |||
msg ) |
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 37 of file spectrum-test.h.
Referenced by LteSpectrumModelTestCase::DoRun(), and SpectrumValueTestCase::DoRun().
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL | ( | actual, | |
expected, | |||
tol, | |||
msg ) |
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 102 of file spectrum-test.h.
Referenced by LteDownlinkCtrlSinrTestCase::DoRun(), LteDownlinkDataSinrTestCase::DoRun(), LteDownlinkPowerControlSpectrumValueTestCase::DoRun(), LteNoisePsdTestCase::DoRun(), LteTxPsdTestCase::DoRun(), LteUplinkDataSinrTestCase::DoRun(), LteUplinkSrsSinrTestCase::DoRun(), and SpectrumValueTestCase::DoRun().