Small logic tweaks

This commit is contained in:
Phil Nash committed 2012-11-29 20:11:46 +00:00
1 parent 6f2343bf64
commit 3d6be037e9
2 files changed
+10 -15

No files matched your search

+5 -6
View File
@@ -22,7 +22,7 @@ namespace Catch {
virtual const ISectionInfo* getParent() const = 0;
};
class SectionInfo : ISectionInfo {
class SectionInfo : public ISectionInfo {
public:
typedef std::vector<SectionInfo*> SubSections;
@@ -98,11 +98,10 @@ namespace Catch {
}
bool ran() {
if( m_state < Branch ) {
m_state = TestedLeaf;
return true;
}
return false;
if( m_state >= Branch )
return false;
m_state = TestedLeaf;
return true;
}
void ranToCompletion() {