Use new сoefficient option to speed up nesting.

Just stop after first succesful nesting.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-04-03 13:30:29 +03:00
parent c26d4d0942
commit fc04d2d4bb

View File

@ -136,27 +136,27 @@ void TST_ValentinaCommandLine::ExportMode_data() const
const QString tmp = QCoreApplication::applicationDirPath() + QDir::separator() + *tmpTestFolder; const QString tmp = QCoreApplication::applicationDirPath() + QDir::separator() + *tmpTestFolder;
QTest::newRow("Issue #372")<< "issue_372.val" QTest::newRow("Issue #372")<< "issue_372.val"
<< QString("-p;;0;;-d;;%1;;-b;;output").arg(tmp) << QString("-p;;0;;-d;;%1;;-b;;output;;--сoefficient;;1").arg(tmp)
<< V_EX_OK; << V_EX_OK;
QTest::newRow("A file with limited gradation. Multisize measurements. Wrong data.") QTest::newRow("A file with limited gradation. Multisize measurements. Wrong data.")
<< "glimited_vst.val" << "glimited_vst.val"
<< QString("-p;;0;;-d;;%1;;--gsize;;46;;--gheight;;164;;-b;;output").arg(tmp) << QString("-p;;0;;-d;;%1;;--gsize;;46;;--gheight;;164;;-b;;output;;--сoefficient;;1").arg(tmp)
<< V_EX_DATAERR; << V_EX_DATAERR;
QTest::newRow("A file with limited gradation. Multisize measurements. Correct data.") QTest::newRow("A file with limited gradation. Multisize measurements. Correct data.")
<< "glimited_vst.val" << "glimited_vst.val"
<< QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output").arg(tmp) << QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output;;--сoefficient;;1").arg(tmp)
<< V_EX_OK; << V_EX_OK;
QTest::newRow("A file with limited gradation. Individual measurements.") QTest::newRow("A file with limited gradation. Individual measurements.")
<< "glimited_vit.val" << "glimited_vit.val"
<< QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output").arg(tmp) << QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output;;--сoefficient;;1").arg(tmp)
<< V_EX_DATAERR; << V_EX_DATAERR;
QTest::newRow("A file with limited gradation. No measurements.") QTest::newRow("A file with limited gradation. No measurements.")
<< "glimited_no_m.val" << "glimited_no_m.val"
<< QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output").arg(tmp) << QString("-p;;0;;-d;;%1;;--gsize;;40;;--gheight;;134;;-b;;output;;--сoefficient;;1").arg(tmp)
<< V_EX_DATAERR; << V_EX_DATAERR;
} }