mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added MOCK_TERNARY_CONSTRAINT helper macro
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@658 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
8919e56678
commit
c8072405c8
3 changed files with 67 additions and 5 deletions
|
|
@ -518,6 +518,22 @@ Example :
|
|||
|
||||
[endsect]
|
||||
|
||||
[section MOCK_TERNARY_CONSTRAINT]
|
||||
|
||||
Synopsis :
|
||||
|
||||
MOCK_TERNARY_CONSTRAINT( name, expression ) // defines a constraint 'name' based on the given 'expression'
|
||||
|
||||
The expression manipulates the received parameter 'actual' as well as the passed arguments 'expected' and 'arg' in order to implement the constraint.
|
||||
|
||||
[note The types of expected and arg must be copy-constructible and assignable.]
|
||||
|
||||
Example :
|
||||
|
||||
[helpers_example_3]
|
||||
|
||||
[endsect]
|
||||
|
||||
[endsect]
|
||||
|
||||
[endsect]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue