LANG-1216: NumberUtils#isNumber, NumberUtils#isCreateable should return true for "0.1"

add a test
This commit is contained in:
pascalschumacher 2016-10-22 14:26:45 +02:00
parent 8f9271399a
commit 8274993e29
1 changed files with 1 additions and 0 deletions

View File

@ -1234,6 +1234,7 @@ public class NumberUtilsTest {
compareIsCreatableWithCreateNumber("-.12345", true);
compareIsCreatableWithCreateNumber("-1234E5", true);
compareIsCreatableWithCreateNumber("0", true);
compareIsCreatableWithCreateNumber("0.1", true); // LANG-1216
compareIsCreatableWithCreateNumber("-0", true);
compareIsCreatableWithCreateNumber("01234", true);
compareIsCreatableWithCreateNumber("-01234", true);