add wstream case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7140 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5187b75674
commit
c1fa7c426f
3 changed files with 74 additions and 0 deletions
14
SWIG/Examples/test-suite/python/li_std_wstream_runme.py
Normal file
14
SWIG/Examples/test-suite/python/li_std_wstream_runme.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import li_std_wstream as std
|
||||
|
||||
|
||||
|
||||
a = std.A()
|
||||
|
||||
o = std.wostringstream()
|
||||
|
||||
o << a << u" " << 2345 << u" " << 1.435
|
||||
|
||||
|
||||
if o.str() != "A class 2345 1.435":
|
||||
print "\"%s\"" % (o.str(),)
|
||||
raise RuntimeError
|
||||
Loading…
Add table
Add a link
Reference in a new issue