dovecot-2.0-pigeonhole: Testsuite: added missing test case for t...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Mon Aug 2 17:14:20 EEST 2010


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/350f02ff8d83
changeset: 1352:350f02ff8d83
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Mon Aug 02 16:14:10 2010 +0200
description:
Testsuite: added missing test case for the size test.

diffstat:

 Makefile.am       |   1 +
 tests/size.svtest |  29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)

diffs (44 lines):

diff -r a904a64890bd -r 350f02ff8d83 Makefile.am
--- a/Makefile.am	Mon Aug 02 15:19:05 2010 +0200
+++ b/Makefile.am	Mon Aug 02 16:14:10 2010 +0200
@@ -53,6 +53,7 @@
 	tests/exists.svtest \
 	tests/header.svtest \
 	tests/address.svtest \
+	tests/size.svtest \
 	tests/lexer.svtest \
 	tests/comparators/core.svtest \
 	tests/match-types/is.svtest \
diff -r a904a64890bd -r 350f02ff8d83 tests/size.svtest
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/size.svtest	Mon Aug 02 16:14:10 2010 +0200
@@ -0,0 +1,29 @@
+require "vnd.dovecot.testsuite";
+
+test_set "message" text:
+From: stephan at example.org
+To: nico at frop.example.com
+Subject:         Help        
+X-A:     Text
+X-B: Text            
+X-Multiline: This is a multi-line
+ header body, which should be
+ unfolded correctly.
+
+Text
+
+.
+;
+
+test "Size :under" {
+	if not size :under 1000 {
+		test_fail "size test produced unexpected result";
+	}
+}
+
+test "Size :over" {
+	if not size :over 10 {
+		test_fail "size test produced unexpected result";
+	}
+}
+


More information about the dovecot-cvs mailing list