Add some tests for typedef to member function pointers
This commit is contained in:
parent
fc638814ae
commit
2a5068bcf2
6 changed files with 40 additions and 2 deletions
|
|
@ -43,6 +43,9 @@ memberPtr = NULLPT
|
|||
check("Square area ", 100.0, do_op(s, AREAPT))
|
||||
check("Square perim", 40.0, do_op(s, PERIMPT))
|
||||
|
||||
# Typedefs
|
||||
check("Square perim", 40.0, do_op_td(s, perim_pt));
|
||||
|
||||
check("Add by value", 3, call1(ADD_BY_VALUE, 1, 2))
|
||||
check("Add by pointer", 7, call2(ADD_BY_POINTER, 3, 4))
|
||||
check("Add by reference", 11, call3(ADD_BY_REFERENCE, 5, 6))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue