PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/python/li_std_stream_runme.py

#
Python | 14 lines | 7 code | 7 blank | 0 comment | 1 complexity | 6410a83d96e938c15565bb8184f9b2dc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from li_std_stream import *
  2. a = A()
  3. o = ostringstream()
  4. o << a << " " << 2345 << " " << 1.435
  5. if o.str() != "A class 2345 1.435":
  6. print "\"%s\"" % (o.str(),)
  7. raise RuntimeError