freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [2/3] incubator-freemarker git commit: (Test for BigDecimal "; ;")
Date Wed, 16 Sep 2015 15:42:10 GMT
(Test for BigDecimal "; ;")


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/be9500d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/be9500d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/be9500d0

Branch: refs/heads/2.3-gae
Commit: be9500d0ae9589f15c4f4923c34f7e62f66ea09f
Parents: a071995
Author: ddekany <ddekany@apache.org>
Authored: Wed Sep 16 14:21:33 2015 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Wed Sep 16 14:21:33 2015 +0200

----------------------------------------------------------------------
 .../java/freemarker/core/ExtendedDecimalFormatTest.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/be9500d0/src/test/java/freemarker/core/ExtendedDecimalFormatTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/core/ExtendedDecimalFormatTest.java b/src/test/java/freemarker/core/ExtendedDecimalFormatTest.java
index 612b063..b632069 100644
--- a/src/test/java/freemarker/core/ExtendedDecimalFormatTest.java
+++ b/src/test/java/freemarker/core/ExtendedDecimalFormatTest.java
@@ -73,6 +73,18 @@ public class ExtendedDecimalFormatTest {
             // Expected
         }
         try {
+            new DecimalFormat("; ;");
+            fail();
+        } catch (IllegalArgumentException e) {
+            // Expected
+        }
+        try {
+            ExtendedDecimalFormatParser.parse("; ;", LOC);
+            fail();
+        } catch (IllegalArgumentException e) {
+            // Expected
+        }
+        try {
             ExtendedDecimalFormatParser.parse(";m", LOC);
             fail();
         } catch (IllegalArgumentException e) {


Mime
View raw message