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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-20 18:33:37 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080620183337-hockvwcewu29409c
Tags: 1.3.35-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - use php5
  - Clean Runtime/ as well.
  - Force a few environment variables.
  - debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
f = FooBar()
4
4
if f.blah(3) != 3:
5
 
    raise RuntimeError,"blah(int)"
6
 
 
7
 
if f.blah(3.5) != 3.5:
8
 
    raise RuntimeError,"blah(double)"
9
 
 
10
 
if f.blah("hello") != "hello":
11
 
    raise RuntimeError,"blah(char *)"
 
5
  raise RuntimeError,"FooBar::blah(int)"
 
6
 
 
7
if f.blah(3.5) != 3.5:
 
8
  raise RuntimeError,"FooBar::blah(double)"
 
9
 
 
10
if f.blah("hello") != "hello":
 
11
  raise RuntimeError,"FooBar::blah(char *)"
 
12
 
 
13
 
 
14
f = FooBar2()
 
15
if f.blah(3) != 3:
 
16
  raise RuntimeError,"FooBar2::blah(int)"
 
17
 
 
18
if f.blah(3.5) != 3.5:
 
19
  raise RuntimeError,"FooBar2::blah(double)"
 
20
 
 
21
if f.blah("hello") != "hello":
 
22
  raise RuntimeError,"FooBar2::blah(char *)"
 
23
 
 
24
 
 
25
f = FooBar3()
 
26
if f.blah(3) != 3:
 
27
  raise RuntimeError,"FooBar3::blah(int)"
 
28
 
 
29
if f.blah(3.5) != 3.5:
 
30
  raise RuntimeError,"FooBar3::blah(double)"
 
31
 
 
32
if f.blah("hello") != "hello":
 
33
  raise RuntimeError,"FooBar3::blah(char *)"
 
34