public void testVersionConstraintSpaceTolerance()
{
final VersionConstraint constraint = new VersionConstraint( " 1.2.3, 3.4 , [ 5.2 - 6.0) , [ 8.3 " );
assertFalse( constraint.check( new Version( "1.2" ) ) );
assertFalse( constraint.check( new Version( "1.2.1" ) ) );
assertTrue( constraint.check( new Version( "1.2.3" ) ) );
assertFalse( constraint.check( new Version( "1.2.4" ) ) );
assertFalse( constraint.check( new Version( "3.3" ) ) );
assertTrue( constraint.check( new Version( "3.4" ) ) );
assertFalse( constraint.check( new Version( "3.4.1" ) ) );
assertFalse( constraint.check( new Version( "3.5" ) ) );
assertFalse( constraint.check( new Version( "5.0" ) ) );
assertFalse( constraint.check( new Version( "5.1" ) ) );
assertTrue( constraint.check( new Version( "5.2" ) ) );
assertTrue( constraint.check( new Version( "5.3" ) ) );
assertTrue( constraint.check( new Version( "5.9.9.9" ) ) );
assertFalse( constraint.check( new Version( "6.0" ) ) );
assertFalse( constraint.check( new Version( "6.1" ) ) );
assertFalse( constraint.check( new Version( "7.3" ) ) );
assertFalse( constraint.check( new Version( "8.0" ) ) );
assertFalse( constraint.check( new Version( "8.2" ) ) );
assertTrue( constraint.check( new Version( "8.3" ) ) );
assertTrue( constraint.check( new Version( "8.3.4.5" ) ) );
assertTrue( constraint.check( new Version( "8.5" ) ) );
assertTrue( constraint.check( new Version( "9.0" ) ) );
assertTrue( constraint.check( new Version( "55.0" ) ) );
}