mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Generalized to MOCK_CONSTRAINT
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@660 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
8a6edd531e
commit
400aaddf9a
7 changed files with 108 additions and 123 deletions
|
|
@ -64,7 +64,7 @@ Simple enough, however this constraint isn't serializable and thus yields a rath
|
|||
|
||||
Just like a parameter, a constraint can be displayed in a readable form using its serialization operator, see [link turtle.customization.logging logging].
|
||||
|
||||
Thus a widely used constraint (for instance one shipped with the code of a library) is likely better to be defined like this :
|
||||
Thus a widely used constraint (for instance one shipped with the code of a library) is likely better defined like this :
|
||||
|
||||
[custom_constraint_functor]
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ See [link turtle.reference.expectation.constraints constraints] for an explanati
|
|||
|
||||
For more information about the serialization operator and the use of mock::format, refer to [link turtle.customization.logging loggin].
|
||||
|
||||
[note The [link turtle.reference.helpers.mock_unary_constraint MOCK_UNARY_CONSTRAINT] and [link turtle.reference.helpers.mock_binary_constraint MOCK_BINARY_CONSTRAINT] macros replace the need to write the constraints explicitly for the most trivial cases.]
|
||||
[note The [link turtle.reference.helpers.mock_constraint MOCK_CONSTRAINT] macro takes care of everything for simple cases.]
|
||||
|
||||
[endsect]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue