*/
@Test
public void test_checkForVersion() throws Exception {
- final String[] validedVersions = { "1.0.1", "1.0.111", "1.10.111", "35.35.123", "0.0.1", "0.1" };
+ final String[] validedVersions = { "1.0.1", "1.0.111", "1.10.111", "35.35.123", "0.0.1", "0.1", "1.0", "0.0.0" };
for ( String version : validedVersions ) {
assertTrue( "Failed for \"" + version + "\"", ValidationUtil.checkForVersion( version ) );
}
- final String[] invalidedVersions = { "", "0.0.0", "111.111.111111", "1", "1.0.", "0" };
+ final String[] invalidedVersions = { "", "111.111.111111", "1", "1.0.", "0" };
for ( String version : invalidedVersions ) {
assertFalse( "Failed for \"" + version + "\"", ValidationUtil.checkForVersion( version ) );
}