NOISSUE add basic unit tests for MojangVersionFormat reading/writing

will have to make them pass now
This commit is contained in:
Petr Mrázek 2016-03-03 01:40:12 +01:00
parent b54839b897
commit 94d4684809
7 changed files with 814 additions and 21 deletions

View file

@ -82,7 +82,10 @@ QJsonObject OsRule::toJson()
QJsonObject osObj;
{
osObj.insert("name", OpSys_toString(m_system));
osObj.insert("version", m_version_regexp);
if(!m_version_regexp.isEmpty())
{
osObj.insert("version", m_version_regexp);
}
}
ruleObj.insert("os", osObj);
return ruleObj;