Skip to content

Commit 2db6f4d

Browse files
committed
Update the contents
1 parent 76ec619 commit 2db6f4d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

sphinx/interface.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ Programming interface
44
Assertions
55
----------
66

7+
The functions described in this section are declared in the
8+
`cppunitx::assertion` namespace.
9+
710
.. cpp:namespace:: cppunitx::assertion
811

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+
919
.. cpp:function:: void fail(const char *message = nullptr)
1020
void fail(const std::string &message)
1121

12-
This function throws an exception to signal a test failure.
22+
This function signals a test failure by throwing an exception.

0 commit comments

Comments
 (0)