Commit bf22a145 authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotests

parent 9d99e3ed
require "spamtest";
require "relational";
require "comparator-i;ascii-numeric";
require "spamtestplus";
#SCRIPTNAME: Script part 0
#Script name: test spam
if allof (spamtest :count "lt" :comparator "i;ascii-numeric" "5"
, spamtest :value "ge" :comparator "i;ascii-numeric" "8"
, spamtest :count "lt" :comparator "i;ascii-numeric" "3"
)
{
stop;
}
\ No newline at end of file
require "spamtest";
require "relational";
require "comparator-i;ascii-numeric";
#Script name: test spam
if allof (spamtest :count "lt" :comparator "i;ascii-numeric" "5"
, spamtest :value "ge" :comparator "i;ascii-numeric" "8"
, spamtest :count "lt" :comparator "i;ascii-numeric" "3"
)
{
stop;
}
......@@ -146,6 +146,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("address-with-default-all-parameter") << QStringLiteral("address-with-default-all-parameter") << false << true;
QTest::newRow("not-condition2") << QStringLiteral("not-condition2") << false << true;
QTest::newRow("address-with-default-is-parameter") << QStringLiteral("address-with-default-is-parameter") << false << true;
QTest::newRow("test-spam") << QStringLiteral("test-spam") << false << true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment