#include <ns3/test.h>
#include <ns3/spectrum-value.h>
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) |
#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.
#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.
#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 101 of file spectrum-test.h.
#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.