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

« back to all changes in this revision

Viewing changes to Examples/test-suite/python/li_std_wstream_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
import li_std_wstream as std
 
2
 
 
3
 
 
4
 
 
5
a = std.A()
 
6
 
 
7
o = std.wostringstream()
 
8
 
 
9
o << a << u" " << 2345 << u" " << 1.435 << std.wends
 
10
 
 
11
if o.str() !=  "A class 2345 1.435\0":
 
12
  print "\"%s\"" % (o.str(),)
 
13
  raise RuntimeError