Add -i/--include option to "generate" CLI command. (#7112)

This commit is contained in:
Patrick Klein
2021-12-08 05:40:09 +01:00
committed by GitHub
parent b3896f2600
commit a0a063b57f
9 changed files with 359 additions and 213 deletions

View File

@@ -1195,6 +1195,10 @@ void TestCli::testGenerate_data()
<< QStringList{"generate", "-L", "2", "--upper", "-l", "--every-group"} << "^[a-z][A-Z]|[A-Z][a-z]$";
QTest::newRow("numbers + lowercase (every)")
<< QStringList{"generate", "-L", "2", "-n", "-l", "--every-group"} << "^[a-z][0-9]|[0-9][a-z]$";
QTest::newRow("custom character set")
<< QStringList{"generate", "-L", "200", "-n", "-c", "abc"} << "^[abc0-9]{200}$";
QTest::newRow("custom character set without extra options uses only custom chars")
<< QStringList{"generate", "-L", "200", "-c", "a"} << "^a{200}$";
}
void TestCli::testGenerate()