|
Boost Users : |
Subject: Re: [Boost-users] How to make boost.test log wstring?
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2010-02-09 13:08:49
In article <hkhsvn$jor$1_at_[hidden]>, don_reba_at_[hidden] says...
>
> Boost.test logs to ostream, which does not have an operator for wstring.
> Consequently, I cannot test wstring values. How can I fix this?
One alternative is to simply use BOOST_CHECK and the == operator:
BOOST_CHECK(obj.get_wstring() == L"Expected");
Lacks the nice output, but it's quite easy.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net