~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/python/input_runme.py

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from input import *
 
2
 
 
3
f = Foo()
 
4
if f.foo(2) != 4:
 
5
  raise RuntimeError
 
6
  
 
7
if f.foo(None)!= None:
 
8
  raise RuntimeError
 
9
 
 
10
if f.foo()!= None:
 
11
  raise RuntimeError
 
12
 
 
13
if sfoo("Hello") != "Hello world":
 
14
  raise RuntimeError
 
15
 
 
16
if sfoo(None) != None:
 
17
  raise RuntimeError
 
18
 
 
19
if sfoo() != None:
 
20
  raise RuntimeError