diff --git a/test/defaults.py b/test/defaults.py index b72cea4f..b63f972c 100644 --- a/test/defaults.py +++ b/test/defaults.py @@ -26,6 +26,24 @@ 'int(3); char(Y); string(Hello World); double(0.0); ' >>> x.bar(4, 'Z', "Hi There", 3.3) 'int(4); char(Z); string(Hi There); double(3.3); ' +>>> x.foo(5) +'int(5); bool(0); ' +>>> x.foo(6, 0) +'int(6); bool(0); ' +>>> x.foo(7, 1) +'int(7); bool(1); ' +>>> x.foo("A") +'string(A); bool(0); ' +>>> x.foo("B", False) +'string(B); bool(0); ' +>>> x.foo("C", True) +'string(C); bool(1); ' +>>> x.foo([0,1,2], [2,3,4]) +'list([0, 1, 2]); list([2, 3, 4]); bool(0); ' +>>> x.foo([0,1,2], [2,3,4], False) +'list([0, 1, 2]); list([2, 3, 4]); bool(0); ' +>>> x.foo([0,1,2], [2,3,4], True) +'list([0, 1, 2]); list([2, 3, 4]); bool(1); ' >>>