test/jdk/java/util/Formatter/BasicBigDecimal.java
changeset 50475 0e25d6367884
parent 47216 71c04702a3d5
child 54769 925ee7a89325
--- a/test/jdk/java/util/Formatter/BasicBigDecimal.java	Fri Jun 08 09:37:52 2018 -0700
+++ b/test/jdk/java/util/Formatter/BasicBigDecimal.java	Fri Jun 08 10:09:40 2018 -0700
@@ -1792,6 +1792,15 @@
         //---------------------------------------------------------------------
         test("%%", "%", (Object)null);
         test("%%", "%", "");
+
+        test("%5%", "    %", (Object)null);
+        test("%5%", "    %", "");
+        test("%-5%", "%    ", (Object)null);
+        test("%-5%", "%    ", "");
+
+        tryCatch("%.5%", IllegalFormatPrecisionException.class);
+        tryCatch("%5.5%", IllegalFormatPrecisionException.class);
+
         tryCatch("%%%", UnknownFormatConversionException.class);
         // perhaps an IllegalFormatArgumentIndexException should be defined?
         tryCatch("%<%", IllegalFormatFlagsException.class);