Use exceptions instead of printing to stdout. Part of an effort to convert Python tests to python 3 syntax.
11 lines
211 B
Python
11 lines
211 B
Python
from li_std_wstream import *
|
|
|
|
|
|
a = A()
|
|
|
|
o = wostringstream()
|
|
|
|
o << a << u" " << 2345 << u" " << 1.435 << wends
|
|
|
|
if o.str() != "A class 2345 1.435\0":
|
|
raise RuntimeError("str failed: \"%s\"".format(o.str()))
|