#include "arcane/utils/TraceInfo.h"#include "arcane/utils/Numeric.h"#include "arcane/core/ArcaneTypes.h"#include "arcane/core/ArcaneException.h"Go to the source code of this file.
Classes | |
| class | Arcane::Assertion |
| Base class for assertions in unit tests. More... | |
Namespaces | |
| namespace | Arcane |
| -- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -- | |
Macros | |
| #define | FAIL fail(A_FUNCINFO) |
| #define | ASSERT_TRUE(condition) |
| Checks that condition is true. | |
| #define | PARALLEL_ASSERT_TRUE(condition, parallel_mng) |
| Checks in parallel that condition is true. | |
| #define | ASSERT_FALSE(condition) |
| Checks that condition is false. | |
| #define | PARALLEL_ASSERT_FALSE(condition, parallel_mng) |
| Checks that condition is false. | |
| #define | ASSERT_EQUAL(expected, actual) |
| Checks that expected and actual are equal. The comparison is done via the type's ==() operator. | |
| #define | PARALLEL_ASSERT_EQUAL(expected, actual, parallel_mng) |
| Checks that expected and actual are equal. The comparison is done via the type's ==() operator. | |
| #define | ASSERT_NEARLY_EQUAL(expected, actual) |
| Checks that expected and actual are nearly equal. | |
| #define | PARALLEL_ASSERT_NEARLY_EQUAL(expected, actual, parallel_mng) |
| Checks that expected and actual are nearly equal. | |
| #define | ASSERT_NEARLY_ZERO(actual) |
| Checks that actual is almost equal to zero using the standard epsilon. | |
| #define | PARALLEL_ASSERT_NEARLY_ZERO(actual, parallel_mng) |
| Checks that actual is almost equal to zero using the standard epsilon. | |
| #define | ASSERT_NEARLY_EQUAL_EPSILON(expected, actual, epsilon) |
| Checks that expected and actual are nearly equal. | |
| #define | PARALLEL_ASSERT_NEARLY_EQUAL_EPSILON(expected, actual, epsilon, parallel_mng) |
| Checks that expected and actual are nearly equal. | |
| #define | ASSERT_NEARLY_ZERO_EPSILON(actual, epsilon) |
| Checks that actual is almost equal to zero using the specified epsilon epsilon. | |
| #define | PARALLEL_ASSERT_NEARLY_ZERO_EPSILON(actual, epsilon, parallel_mng) |
| Checks that actual is almost equal to zero using the specified epsilon epsilon. | |
| #define | ASSERT_EQUALS(expected, actual) |
| Checks that expected and actual are equal. The comparison is done via the type's ==() operator. | |
| #define | ASSERT_NEARLY_EQUALS(expected, actual) |
| Checks that expected and actual are nearly equal. | |
This file contains the assertions used for unit tests.
Definition in file Assertion.h.
| #define ASSERT_EQUAL | ( | expected, | |
| actual ) |
Checks that expected and actual are equal. The comparison is done via the type's ==() operator.
Definition at line 153 of file Assertion.h.
| #define ASSERT_EQUALS | ( | expected, | |
| actual ) |
Checks that expected and actual are equal. The comparison is done via the type's ==() operator.
Definition at line 228 of file Assertion.h.
| #define ASSERT_FALSE | ( | condition | ) |
Checks that condition is false.
Definition at line 140 of file Assertion.h.
| #define ASSERT_NEARLY_EQUAL | ( | expected, | |
| actual ) |
Checks that expected and actual are nearly equal.
Definition at line 167 of file Assertion.h.
| #define ASSERT_NEARLY_EQUAL_EPSILON | ( | expected, | |
| actual, | |||
| epsilon ) |
Checks that expected and actual are nearly equal.
Definition at line 197 of file Assertion.h.
| #define ASSERT_NEARLY_EQUALS | ( | expected, | |
| actual ) |
Checks that expected and actual are nearly equal.
Definition at line 236 of file Assertion.h.
| #define ASSERT_NEARLY_ZERO | ( | actual | ) |
Checks that actual is almost equal to zero using the standard epsilon.
Definition at line 182 of file Assertion.h.
| #define ASSERT_NEARLY_ZERO_EPSILON | ( | actual, | |
| epsilon ) |
Checks that actual is almost equal to zero using the specified epsilon epsilon.
Definition at line 212 of file Assertion.h.
| #define ASSERT_TRUE | ( | condition | ) |
Checks that condition is true.
Definition at line 128 of file Assertion.h.
| #define FAIL fail(A_FUNCINFO) |
Definition at line 123 of file Assertion.h.
| #define PARALLEL_ASSERT_EQUAL | ( | expected, | |
| actual, | |||
| parallel_mng ) |
Checks that expected and actual are equal. The comparison is done via the type's ==() operator.
Definition at line 160 of file Assertion.h.
| #define PARALLEL_ASSERT_FALSE | ( | condition, | |
| parallel_mng ) |
Checks that condition is false.
Definition at line 146 of file Assertion.h.
| #define PARALLEL_ASSERT_NEARLY_EQUAL | ( | expected, | |
| actual, | |||
| parallel_mng ) |
Checks that expected and actual are nearly equal.
Definition at line 174 of file Assertion.h.
| #define PARALLEL_ASSERT_NEARLY_EQUAL_EPSILON | ( | expected, | |
| actual, | |||
| epsilon, | |||
| parallel_mng ) |
Checks that expected and actual are nearly equal.
Definition at line 204 of file Assertion.h.
| #define PARALLEL_ASSERT_NEARLY_ZERO | ( | actual, | |
| parallel_mng ) |
Checks that actual is almost equal to zero using the standard epsilon.
Definition at line 190 of file Assertion.h.
| #define PARALLEL_ASSERT_NEARLY_ZERO_EPSILON | ( | actual, | |
| epsilon, | |||
| parallel_mng ) |
Checks that actual is almost equal to zero using the specified epsilon epsilon.
Definition at line 220 of file Assertion.h.
| #define PARALLEL_ASSERT_TRUE | ( | condition, | |
| parallel_mng ) |
Checks in parallel that condition is true.
Definition at line 134 of file Assertion.h.