NOISSUE add basic unit tests for MojangVersionFormat reading/writing
will have to make them pass now
This commit is contained in:
parent
b54839b897
commit
94d4684809
7 changed files with 814 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue