1require "vnd.dovecot.testsuite";
2
3require "relational";
4require "comparator-i;ascii-numeric";
5
6test "Error command" {
7	if not test_script_compile "errors/error.sieve" {
8		test_fail "compile failed";
9	}
10
11	if test_script_run {
12		test_fail "execution should have failed";
13	}
14
15	if test_error :count "gt" :comparator "i;ascii-numeric" "1" {
16		test_fail "too many runtime errors reported";
17	}
18}
19
20