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