2.1 --- a/tests/logical.py Mon Nov 21 19:03:07 2016 +0100
2.2 +++ b/tests/logical.py Mon Nov 21 19:03:20 2016 +0100
2.3 @@ -12,3 +12,19 @@
2.4
2.5 def j(a, b, c):
2.6 return f(a, b, c) and g(a, b, c) or c
2.7 +
2.8 +print f(0, 0, 0) # 0
2.9 +print f(1, 0, 1) # 0
2.10 +print f(1, 1, 1) # 1
2.11 +print g(0, 0, 0) # 0
2.12 +print g(1, 0, 0) # 1
2.13 +print g(0, 0, 1) # 1
2.14 +print h(0, 0, 0) # 0
2.15 +print h(0, 0, 1) # 1
2.16 +print h(1, 0, 0) # 0
2.17 +print i(0, 0, 0) # 0
2.18 +print i(0, 0, 1) # 0
2.19 +print i(1, 0, 0) # 1
2.20 +print j(0, 0, 0) # 0
2.21 +print j(0, 0, 1) # 1
2.22 +print j(1, 0, 0) # 0
3.1 --- a/tests/methods_bound.py Mon Nov 21 19:03:07 2016 +0100
3.2 +++ b/tests/methods_bound.py Mon Nov 21 19:03:20 2016 +0100
3.3 @@ -9,6 +9,7 @@
3.4 return obj.m
3.5
3.6 c = C()
3.7 -result1 = f(c, 1)
3.8 +print f(c, 1) # 1
3.9 +print f(c, 0)(2) # 2
3.10 fn = f(c, 0)
3.11 -result2 = fn(2)
3.12 +print fn(2) # 2