# HG changeset patch # User Paul Boddie # Date 1479751400 -3600 # Node ID 1977ae2cb16d966eddf8cc76b701e68ef41f4c1b # Parent 114c40d79d7314295f730084b7910007716b2d6d Added print statements to various tests. diff -r 114c40d79d73 -r 1977ae2cb16d tests/global_names.py --- a/tests/global_names.py Mon Nov 21 19:03:07 2016 +0100 +++ b/tests/global_names.py Mon Nov 21 19:03:20 2016 +0100 @@ -8,4 +8,4 @@ g = C result = f() -assert result == 3 +print result diff -r 114c40d79d73 -r 1977ae2cb16d tests/logical.py --- a/tests/logical.py Mon Nov 21 19:03:07 2016 +0100 +++ b/tests/logical.py Mon Nov 21 19:03:20 2016 +0100 @@ -12,3 +12,19 @@ def j(a, b, c): return f(a, b, c) and g(a, b, c) or c + +print f(0, 0, 0) # 0 +print f(1, 0, 1) # 0 +print f(1, 1, 1) # 1 +print g(0, 0, 0) # 0 +print g(1, 0, 0) # 1 +print g(0, 0, 1) # 1 +print h(0, 0, 0) # 0 +print h(0, 0, 1) # 1 +print h(1, 0, 0) # 0 +print i(0, 0, 0) # 0 +print i(0, 0, 1) # 0 +print i(1, 0, 0) # 1 +print j(0, 0, 0) # 0 +print j(0, 0, 1) # 1 +print j(1, 0, 0) # 0 diff -r 114c40d79d73 -r 1977ae2cb16d tests/methods_bound.py --- a/tests/methods_bound.py Mon Nov 21 19:03:07 2016 +0100 +++ b/tests/methods_bound.py Mon Nov 21 19:03:20 2016 +0100 @@ -9,6 +9,7 @@ return obj.m c = C() -result1 = f(c, 1) +print f(c, 1) # 1 +print f(c, 0)(2) # 2 fn = f(c, 0) -result2 = fn(2) +print fn(2) # 2