mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
Additionals: Correct postalCodeCA to exclude invalid combinations
This commit is contained in:
@@ -1188,7 +1188,9 @@ test("postalCodeCA", function() {
|
||||
ok( method( "h0h0h0" ), "Valid Canadian postal code: all lower case with no space" );
|
||||
ok( !method( "H0H-0H0"), "Invalid Canadian postal code: dash used as separator" );
|
||||
ok( !method( "H0H 0H"), "Invalid Canadian postal code: too short" );
|
||||
ok( !method( "Z0H 0H"), "Invalid Canadian postal code: only 'ABCEGHJKLMNPRSTVXY' are valid starting characters" );
|
||||
ok( !method( "Z0H 0H0"), "Invalid Canadian postal code: only 'ABCEGHJKLMNPRSTVXY' are valid first characters for the Forward Sorting Area" );
|
||||
ok( !method( "H0D 0H0"), "Invalid Canadian postal code: only 'ABCEGHJKLMNPRSTVWXYZ' are valid third characters for the Forward Sorting Area" );
|
||||
ok( !method( "H0H 0D0"), "Invalid Canadian postal code: only 'ABCEGHJKLMNPRSTVWXYZ' are valid second characters for the Local Delivery Unit" );
|
||||
});
|
||||
|
||||
test("stateUS", function() {
|
||||
|
||||
Reference in New Issue
Block a user