From 8274993e293a79fc75829df398233915a6387a4b Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Sat, 22 Oct 2016 14:26:45 +0200 Subject: [PATCH] LANG-1216: NumberUtils#isNumber, NumberUtils#isCreateable should return true for "0.1" add a test --- src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java | 1 + 1 file changed, 1 insertion(+) 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 ef313e133..9c2cad4a1 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);