File tree 1 file changed +21
-21
lines changed 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -315,30 +315,30 @@ namespace {
315
315
CHECK_EQUAL (1234 , reporter.lastFailedLine );
316
316
}
317
317
318
- TEST (CheckProperlyDealsWithOperatorBoolOverrides)
318
+ class TruthyUnlessCopied
319
319
{
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
321
332
{
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
+ };
341
339
340
+ TEST (CheckProperlyDealsWithOperatorBoolOverrides)
341
+ {
342
342
TruthyUnlessCopied objectThatShouldBeTruthy;
343
343
CHECK (objectThatShouldBeTruthy);
344
344
}
You can’t perform that action at this time.
0 commit comments