fix failing test - boost::format is getting better

"%broken" is not broken anymore, but renders a boolean,
and we configured the formatter not to complain on missing values.

Fortunately "%madness" is still broken ;-)
This commit is contained in:
Fischlurch 2020-02-17 03:32:43 +01:00
parent 38837da65e
commit 3cfe5a13b1

View file

@ -218,7 +218,8 @@ namespace test {
struct Verbose struct Verbose
: Silent : Silent
{ {
Verbose(int i) : Silent(i) { } using Silent::Silent;
virtual ~Verbose() { }
virtual virtual
operator string() const operator string() const
@ -230,7 +231,7 @@ namespace test {
struct Explosive struct Explosive
: Verbose : Verbose
{ {
Explosive(int i) : Verbose(i) { } using Verbose::Verbose;
operator string() const operator string() const
{ {
@ -291,7 +292,7 @@ namespace test {
cout << _Fmt("__%d__") % "1234" << endl; cout << _Fmt("__%d__") % "1234" << endl;
cout << _Fmt("__%d__") % "0xff" << endl; cout << _Fmt("__%d__") % "0xff" << endl;
VERIFY_ERROR(FORMAT_SYNTAX, _Fmt("%broken")); VERIFY_ERROR(FORMAT_SYNTAX, _Fmt("%madness"));
} }