jquery-validation icon indicating copy to clipboard operation
jquery-validation copied to clipboard

additional date german

Open ltdeta opened this issue 9 years ago • 6 comments

adopted from additional dateITA

ltdeta avatar Aug 30 '16 08:08 ltdeta

Thx for the PR. Please add tests

staabm avatar Feb 11 '17 20:02 staabm

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

stale[bot] avatar Jun 05 '18 13:06 stale[bot]

Thx for the PR. Please add tests

What does it actually mean ?

ltdeta avatar Jun 07 '18 20:06 ltdeta

Hi @ltdeta,

It means you need to add some test for the new method, like it's done with dateITA in https://github.com/jquery-validation/jquery-validation/blob/934822bb1ec52dac0c3de86010e0e69e4b4a2e0f/test/methods.js#L877-L884

Arkni avatar Jun 08 '18 00:06 Arkni

Here are some tests for the new method

QUnit.test( "dateGER", function( assert ) {
	var method = methodTest( "dateGER" );
	assert.ok( method( "01.01.1900" ), "Valid date GER" );
	assert.ok( method( "17.10.2010" ), "Valid date GER" );
	assert.ok( method( "17.6.1878" ), "Valid date GER" );
	assert.ok( method( "2.6.1870" ), "Valid date GER" );
		
	assert.ok( !method( "01.13.1990" ), "Invalid date GER" );
	assert.ok( !method( "32.05.1990" ), "Invalid date GER" );	
	assert.ok( !method( "00.01.1900" ), "Invalid date GER" );
	assert.ok( !method( "01.02.199" ), "Invalid date GER" );
        assert.ok( !method( "01.02.99" ), "Invalid date GER" );	
	assert.ok( !method( "00.00.1900" ), "Invalid date GER" );
	assert.ok( !method( "0.00.1900" ), "Invalid date GER" );
	assert.ok( !method( "0.0.1900" ), "Invalid date GER" );
} );

ltdeta avatar Sep 11 '18 16:09 ltdeta

HI @ltdeta,

Sorry for taking so long to respond to you comment. Can you please add those tests after https://github.com/jquery-validation/jquery-validation/blob/934822bb1ec52dac0c3de86010e0e69e4b4a2e0f/test/methods.js#L877-L884 and push the changes.

After that I will merge the PR.

Thanks!

Arkni avatar Oct 06 '18 12:10 Arkni