dovecot-2.1-pigeonhole: testsuite: fixed local timezone dependen...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Sun Apr 7 06:13:04 EEST 2013


details:   http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/bc2126771d00
changeset: 1685:bc2126771d00
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sun Apr 07 05:12:57 2013 +0200
description:
testsuite: fixed local timezone dependency in date extension tests.

diffstat:

 tests/extensions/date/basic.svtest |  21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diffs (48 lines):

diff -r e3700924ac8c -r bc2126771d00 tests/extensions/date/basic.svtest
--- a/tests/extensions/date/basic.svtest	Sat Apr 06 22:37:46 2013 +0200
+++ b/tests/extensions/date/basic.svtest	Sun Apr 07 05:12:57 2013 +0200
@@ -41,34 +41,33 @@
 }
 
 test "Comparison" {
-	if not date :is "delivery-date" "date" "2009-07-22" {
-		if date :matches "delivery-date" "date" "*" { set "date" "${1}"; }
+	if not date :originalzone :is "delivery-date" "date" "2009-07-22" {
+		if date :originalzone :matches "delivery-date" "date" "*" { set "date" "${1}"; }
 		test_fail "date is invalid: ${date}";
 	}
-
-	if not date :value "ge" "delivery-date" "date" "2009-07-22" {
+	if not date :originalzone :value "ge" "delivery-date" "date" "2009-07-22" {
 		test_fail "date comparison ge failed equal";
 	}
 
-	if not date :value "ge" "delivery-date" "date" "2009-07-21" {
+	if not date :originalzone :value "ge" "delivery-date" "date" "2009-07-21" {
 		test_fail "date comparison ge failed greater";
 	}
 
-	if anyof (not date :value "ge" "delivery-date" "date" "2009-06-22",
-		not date :value "ge" "date" "date" "2006-07-22" ) {
+	if anyof (not date :originalzone :value "ge" "delivery-date" "date" "2009-06-22",
+		not date :originalzone :value "ge" "date" "date" "2006-07-22" ) {
 		test_fail "date comparison ge failed much greater";
 	}
 
-	if not date :value "le" "delivery-date" "date" "2009-07-22" {
+	if not date :originalzone :value "le" "delivery-date" "date" "2009-07-22" {
 		test_fail "date comparison le failed equal";
 	}
 
-	if not date :value "le" "delivery-date" "date" "2009-07-23" {
+	if not date :originalzone :value "le" "delivery-date" "date" "2009-07-23" {
 		test_fail "date comparison le failed less";
 	}
 
-	if anyof (not date :value "le" "delivery-date" "date" "2009-09-22",
-		not date :value "le" "date" "date" "2012-07-22" ) {
+	if anyof (not date :originalzone :value "le" "delivery-date" "date" "2009-09-22",
+		not date :originalzone :value "le" "date" "date" "2012-07-22" ) {
 		test_fail "date comparison ge failed much less";
 	}
 }


More information about the dovecot-cvs mailing list