Command line tests and minor touch ups

This commit is contained in:
Nikola Matic
2022-09-12 11:13:49 +02:00
parent ddf0d784ac
commit 314a1cc92f
15 changed files with 88 additions and 47 deletions
+4 -3
View File
@@ -141,7 +141,7 @@ void OptimiserSuite::run(
stackCompressorMaxIterations
);
// Run the user supplied (otherwise default) clean up sequence
// Run the user-supplied clean up sequence
suite.runSequence(_optimisationCleanupSequence, ast);
suite.runSequence("g", ast);
@@ -316,8 +316,9 @@ void OptimiserSuite::validateSequence(string_view _stepAbbreviations)
assertThrow(nestingLevel >= 0, OptimizerException, "Unbalanced brackets");
break;
case ':':
assertThrow(nestingLevel == 0, OptimizerException, "Cleanup delimiter may only be placed at nesting level zero");
assertThrow(++colonDelimiters <=1, OptimizerException, "Too many colon delimiters");
++colonDelimiters;
assertThrow(nestingLevel == 0, OptimizerException, "Cleanup sequence delimiter cannot be placed inside the brackets");
assertThrow(colonDelimiters <=1, OptimizerException, "Too many cleanup sequence delimiters");
break;
default:
{