PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

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