8000 Attempted fix for Travis build. · Reification/unittest-cpp@bec6ba5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bec6ba5

Browse files
committed
Attempted fix for Travis build.
1 parent 21589e5 commit bec6ba5

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

tests/TestChecks.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)
0