File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,30 +315,30 @@ namespace {
315315 CHECK_EQUAL (1234 , reporter.lastFailedLine );
316316 }
317317
318- TEST (CheckProperlyDealsWithOperatorBoolOverrides)
318+ class TruthyUnlessCopied
319319 {
320- class TruthyUnlessCopied
320+ public:
321+ TruthyUnlessCopied ()
322+ : truthy_(true )
323+ {
324+ }
325+
326+ TruthyUnlessCopied (const TruthyUnlessCopied& orig)
327+ : truthy_(false )
328+ {
329+ }
330+
331+ operator bool () const
321332 {
322- public:
323- TruthyUnlessCopied ()
324- : truthy_(true )
325- {
326- }
327-
328- TruthyUnlessCopied (const TruthyUnlessCopied& orig)
329- : truthy_(false )
330- {
331- }
332-
333- operator bool () const
334- {
335- return truthy_;
336- }
337-
338- private:
339- bool truthy_;
340- };
333+ return truthy_;
334+ }
335+
336+ private:
337+ bool truthy_;
338+ };
341339
340+ TEST (CheckProperlyDealsWithOperatorBoolOverrides)
341+ {
342342 TruthyUnlessCopied objectThatShouldBeTruthy;
343343 CHECK (objectThatShouldBeTruthy);
344344 }
You can’t perform that action at this time.
0 commit comments