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
|
|
@ -49,6 +49,8 @@ public class member_pointer_runme {
|
|||
check( "Square area ", 100.0, member_pointer.do_op(s,member_pointer.AREAPT) );
|
||||
check( "Square perim", 40.0, member_pointer.do_op(s,member_pointer.PERIMPT) );
|
||||
|
||||
// Typedefs
|
||||
check( "Square perim", 40.0, member_pointer.do_op_td(s,perim_pt) );
|
||||
}
|
||||
|
||||
private static void check(String what, double expected, double actual) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue