Files
ANSLibs/swig-4.3.0/Examples/test-suite/python/li_std_stream_runme.py

13 lines
197 B
Python
Raw Normal View History

from li_std_stream import *
a = A()
o = ostringstream()
o << a << " " << 2345 << " " << 1.435
if o.str() != "A class 2345 1.435":
raise RuntimeError("str failed: \"%s\"".format(o.str()))