incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject svn commit: r1299568 - /incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as
Date Mon, 12 Mar 2012 07:13:52 GMT
Author: jmclean
Date: Mon Mar 12 07:13:52 2012
New Revision: 1299568

URL: http://svn.apache.org/viewvc?rev=1299568&view=rev
Log:
Added fullwidth character tests

Modified:
    incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as

Modified: incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as?rev=1299568&r1=1299567&r2=1299568&view=diff
==============================================================================
--- incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as (original)
+++ incubator/flex/whiteboard/jmclean/validators/src/tests/PostCodeValidatorTests.as Mon Mar
12 07:13:52 2012
@@ -301,25 +301,48 @@ package tests
 			results = PostCodeValidator.validatePostCode(validator, "AA1234", null);
 			assertTrue("No errors", results.length == 0);
 			
+			results = PostCodeValidator.validatePostCode(validator, "AA1234",
null);
+			assertTrue("No errors", results.length == 0);
+			
 			results = PostCodeValidator.validatePostCode(validator, "BB1234", null);
 			assertTrue("Invalid Postcode", results.length == 1);
 			invalidFormatError(results);
 			
+			results = PostCodeValidator.validatePostCode(validator, "BB1234",
null);
+			assertTrue("Invalid Postcode", results.length == 1);
+			invalidFormatError(results);
+			
 			results = PostCodeValidator.validatePostCode(validator, "AA123", null);
 			assertTrue("Invalid Postcode", results.length == 1);
 			wrongLengthError(results);
 			
+			results = PostCodeValidator.validatePostCode(validator, "AA123",
null);
+			assertTrue("Invalid Postcode", results.length == 1);
+			wrongLengthError(results);
+			
 			results = PostCodeValidator.validatePostCode(validator, "AA12345", null);
 			assertTrue("Invalid Postcode", results.length == 1);
 			wrongLengthError(results);
 			
+			results = PostCodeValidator.validatePostCode(validator, "AA12345",
null);
+			assertTrue("Invalid Postcode", results.length == 1);
+			wrongLengthError(results);
+			
 			results = PostCodeValidator.validatePostCode(validator, "1234AA", null);
 			assertTrue("Invalid Postcode", results.length == 1);
 			invalidFormatError(results);
 			
+			results = PostCodeValidator.validatePostCode(validator, "1234AA",
null);
+			assertTrue("Invalid Postcode", results.length == 1);
+			invalidFormatError(results);
+			
 			results = PostCodeValidator.validatePostCode(validator, "A1A234", null);
 			assertTrue("Invalid Postcode", results.length == 1);
 			invalidFormatError(results);
+			
+			results = PostCodeValidator.validatePostCode(validator, "A1A234",
null);
+			assertTrue("Invalid Postcode", results.length == 1);
+			invalidFormatError(results);
 		}
 		
 		[Test]



Mime
View raw message