LANG-1216: NumberUtils#isNumber, NumberUtils#isCreateable should return true for "0.1"
add a test Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/8274993e Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/8274993e Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/8274993e Branch: refs/heads/master Commit: 8274993e293a79fc75829df398233915a6387a4b Parents: 8f92713 Author: pascalschumacher <pascalschumac...@gmx.net> Authored: Sat Oct 22 14:26:45 2016 +0200 Committer: pascalschumacher <pascalschumac...@gmx.net> Committed: Sat Oct 22 14:29:09 2016 +0200 ---------------------------------------------------------------------- src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8274993e/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java index ef313e1..9c2cad4 100644 --- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java @@ -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);