We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d11b8 commit 0c3bf82Copy full SHA for 0c3bf82
1 file changed
src/test/java/org/apache/commons/csv/CSVPrinterTest.java
@@ -812,6 +812,15 @@ public void testPrintNullValues() throws IOException {
812
}
813
814
815
+ @Test
816
+ public void testPrintOnePositiveInteger() throws IOException {
817
+ final StringWriter sw = new StringWriter();
818
+ try (final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT.withQuoteMode(QuoteMode.MINIMAL))) {
819
+ printer.print(Integer.MAX_VALUE);
820
+ assertEquals(String.valueOf(Integer.MAX_VALUE), sw.toString());
821
+ }
822
823
+
824
@Test
825
public void testPrintToFileWithCharsetUtf16Be() throws IOException {
826
File file = File.createTempFile(getClass().getName(), ".csv");
0 commit comments