2018-05-24 18:35:16 +00:00
|
|
|
#include "CheckableTest.h"
|
|
|
|
|
2019-01-13 17:44:07 +00:00
|
|
|
#include <numeric>
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
CheckableTest::CheckableTest(const char* name, std::initializer_list<std::string> items)
|
|
|
|
: m_name(name)
|
|
|
|
, m_items(items)
|
2018-05-24 18:35:16 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t CheckableTest::size() const
|
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
return m_items.size();
|
2018-05-24 18:35:16 +00:00
|
|
|
}
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
const QString& CheckableTest::name() const
|
2018-05-24 18:35:16 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
return m_name;
|
2018-05-24 18:35:16 +00:00
|
|
|
}
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
const CheckableItems& CheckableTest::items() const
|
2018-05-24 18:35:16 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
return m_items;
|
2018-05-24 18:35:16 +00:00
|
|
|
}
|
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
CheckableItems& CheckableTest::items()
|
2018-05-24 18:35:16 +00:00
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
return m_items;
|
2018-05-24 18:35:16 +00:00
|
|
|
}
|
2019-10-05 14:14:45 +00:00
|
|
|
|
2019-01-13 17:44:07 +00:00
|
|
|
unsigned int CheckableTest::getPoints() const
|
|
|
|
{
|
2019-10-05 14:14:45 +00:00
|
|
|
return m_items.getPoints();
|
2019-01-13 17:44:07 +00:00
|
|
|
}
|