You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2013/06/26 22:40:26 UTC

svn commit: r1497084 - /poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java

Author: nick
Date: Wed Jun 26 20:40:26 2013
New Revision: 1497084

URL: http://svn.apache.org/r1497084
Log:
Add a test to show that bug #53150 has been fixed by the recent fraction work

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java?rev=1497084&r1=1497083&r2=1497084&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java Wed Jun 26 20:40:26 2013
@@ -248,6 +248,9 @@ public class TestDataFormatter extends T
        //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, "# #/#"));
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org