summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/extensions/spamvirustest/errors.svtest
blob: 7e6b794b3dbe2efec92fd092447f390dfdd6812e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "vnd.dovecot.testsuite";

require "comparator-i;ascii-numeric";
require "relational";

test "Syntax errors" {
	if test_script_compile "errors/syntax-errors.sieve" {
		test_fail "compile should have failed";
	}

	if not test_error :count "eq" :comparator "i;ascii-numeric" "5" {
		test_fail "wrong number of errors reported";
	}
}