1.1 --- a/tests/methods_unbound.py Fri Nov 25 21:55:37 2016 +0100
1.2 +++ b/tests/methods_unbound.py Fri Nov 25 22:02:58 2016 +0100
1.3 @@ -69,6 +69,7 @@
1.4 # Main program.
1.5
1.6 c = C()
1.7 +d = D()
1.8
1.9 try:
1.10 print f(C, 1) # fails
1.11 @@ -100,3 +101,13 @@
1.12 print h(c, getd) # should fail with an error caused by a guard
1.13 except TypeError:
1.14 print "h(c, getd): getd provides an unsuitable result."
1.15 +
1.16 +try:
1.17 + print h(d, 0)(4) # should fail with an error caused by a test
1.18 +except TypeError:
1.19 + print "h(d, 0): d is not a suitable argument."
1.20 +
1.21 +try:
1.22 + print g(c, 1)(5)
1.23 +except TypeError:
1.24 + print "g(c, 1)(5): attempt to invoke an integer result from g."