PageRenderTime 12ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 12 lines | 8 code | 4 blank | 0 comment | 2 complexity | b9804e721ce8b4f09be86a09f9c6957a MD5 | raw file
 1import typedef_scope
 2
 3b = typedef_scope.Bar()
 4x = b.test1(42,"hello")
 5if x != 42:
 6    print "Failed!!"
 7
 8x = b.test2(42,"hello")
 9if x != "hello":
10    print "Failed!!"
11    
12