LANG-1216: NumberUtils#isNumber, NumberUtils#isCreateable should return true for "0.1"
add a test
This commit is contained in:
parent
8f9271399a
commit
8274993e29
|
@ -1234,6 +1234,7 @@ public class NumberUtilsTest {
|
||||||
compareIsCreatableWithCreateNumber("-.12345", true);
|
compareIsCreatableWithCreateNumber("-.12345", true);
|
||||||
compareIsCreatableWithCreateNumber("-1234E5", true);
|
compareIsCreatableWithCreateNumber("-1234E5", true);
|
||||||
compareIsCreatableWithCreateNumber("0", true);
|
compareIsCreatableWithCreateNumber("0", true);
|
||||||
|
compareIsCreatableWithCreateNumber("0.1", true); // LANG-1216
|
||||||
compareIsCreatableWithCreateNumber("-0", true);
|
compareIsCreatableWithCreateNumber("-0", true);
|
||||||
compareIsCreatableWithCreateNumber("01234", true);
|
compareIsCreatableWithCreateNumber("01234", true);
|
||||||
compareIsCreatableWithCreateNumber("-01234", true);
|
compareIsCreatableWithCreateNumber("-01234", true);
|
||||||
|
|
Loading…
Reference in New Issue