adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
844924b2c9
commit
25e1e7932a
10 changed files with 79 additions and 14 deletions
|
|
@ -1,10 +1,14 @@
|
|||
import li_std_stream as std
|
||||
|
||||
std.cout << 2345 << " " << 1.435 << std.endl
|
||||
std.endl(std.cout)
|
||||
|
||||
|
||||
a = std.A()
|
||||
|
||||
a.bar(2)
|
||||
a.foo(4, a.bar)
|
||||
o = std.ostringstream()
|
||||
|
||||
o << a << " " << 2345 << " " << 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