Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional date german #1849

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

additional date german #1849

wants to merge 2 commits into from

Conversation

ltdeta
Copy link

@ltdeta ltdeta commented Aug 30, 2016

adopted from additional dateITA

adopted from dateITA
check = false;
}
} else {
check = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the else block. the var is already initialised with this value.

@staabm
Copy link
Member

staabm commented Feb 11, 2017

Thx for the PR. Please add tests

@stale

This comment has been minimized.

@stale stale bot added the stale Used to mark stale issues label Jun 5, 2018
@ltdeta
Copy link
Author

ltdeta commented Jun 7, 2018

Thx for the PR. Please add tests

What does it actually mean ?

@stale stale bot removed the stale Used to mark stale issues label Jun 7, 2018
@Arkni
Copy link
Member

Arkni commented Jun 8, 2018

Hi @ltdeta,

It means you need to add some test for the new method, like it's done with dateITA in

QUnit.test( "dateITA", function( assert ) {
var method = methodTest( "dateITA" );
assert.ok( method( "01/01/1900" ), "Valid date ITA" );
assert.ok( method( "17/10/2010" ), "Valid date ITA" );
assert.ok( !method( "01/13/1990" ), "Invalid date ITA" );
assert.ok( !method( "01.01.1900" ), "Invalid date ITA" );
assert.ok( !method( "01/01/199" ), "Invalid date ITA" );
} );

@ltdeta
Copy link
Author

ltdeta commented Sep 11, 2018

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" );
} );

@Arkni
Copy link
Member

Arkni commented Oct 6, 2018

HI @ltdeta,

Sorry for taking so long to respond to you comment. Can you please add those tests after

QUnit.test( "dateITA", function( assert ) {
var method = methodTest( "dateITA" );
assert.ok( method( "01/01/1900" ), "Valid date ITA" );
assert.ok( method( "17/10/2010" ), "Valid date ITA" );
assert.ok( !method( "01/13/1990" ), "Invalid date ITA" );
assert.ok( !method( "01.01.1900" ), "Invalid date ITA" );
assert.ok( !method( "01/01/199" ), "Invalid date ITA" );
} );
and push the changes.

After that I will merge the PR.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants