1.1 --- a/tests/methods_unbound.py Fri Nov 25 18:36:10 2016 +0100
1.2 +++ b/tests/methods_unbound.py Fri Nov 25 18:36:45 2016 +0100
1.3 @@ -34,6 +34,10 @@
1.4 print get_using(fn, c)(2) # 2
1.5 print get_using(f(C, 0), c)(2) # 2
1.6
1.7 -#print g(C, 1) # should fail with an error caused by a guard
1.8 +try:
1.9 + print g(C, 1) # should fail with an error caused by a guard
1.10 +except TypeError:
1.11 + print "g(C, 1): C is not a suitable argument."
1.12 +
1.13 print g(c, 1) # 1
1.14 print g(c, 0)(3) # 3