diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java b/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java index 6dcd6ebeba..2816a488f4 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java @@ -248,6 +248,9 @@ public class TestDataFormatter extends TestCase { //Bug54868 patch has a hit on the first string before the ";" assertEquals("-123 1/3", dfUS.formatRawCellContents(-123.321, -1, "0 ?/?;0")); + //Bug53150 formatting a whole number with fractions should just give the number + assertEquals("1", dfUS.formatRawCellContents(1.0, -1, "# #/#")); + assertEquals("11", dfUS.formatRawCellContents(11.0, -1, "# #/#")); } /**