PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/input_runme.py

#
Python | 20 lines | 14 code | 6 blank | 0 comment | 6 complexity | d9fd4dc22d886d9788c504ac090152f3 MD5 | raw file
 1from input import *
 2
 3f = Foo()
 4if f.foo(2) != 4:
 5  raise RuntimeError
 6  
 7if f.foo(None)!= None:
 8  raise RuntimeError
 9
10if f.foo()!= None:
11  raise RuntimeError
12
13if sfoo("Hello") != "Hello world":
14  raise RuntimeError
15
16if sfoo(None) != None:
17  raise RuntimeError
18
19if sfoo() != None:
20  raise RuntimeError