File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,19 @@ Programming interface
4
4
Assertions
5
5
----------
6
6
7
+ The functions described in this section are declared in the
8
+ `cppunitx::assertion ` namespace.
9
+
7
10
.. cpp :namespace :: cppunitx::assertion
8
11
12
+ .. cpp :function :: template <class T , class U> \
13
+ void assertEqual (T x, U y, const char *message = nullptr)
14
+ template <class T , class U> \
15
+ void assertEqual (T x, U y, const std::string &message)
16
+
17
+ This function asserts two values are equal to each other.
18
+
9
19
.. cpp :function :: void fail (const char *message = nullptr)
10
20
void fail (const std::string &message)
11
21
12
- This function throws an exception to signal a test failure .
22
+ This function signals a test failure by throwing an exception .
You can’t perform that action at this time.
0 commit comments