Skip to content

Commit c2c2d06

Browse files
committed
Minor test addition (yaml)
1 parent c42af68 commit c2c2d06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yaml/src/test/java/com/fasterxml/jackson/dataformat/yaml/ser/GeneratorWithMinimizeTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ public void testQuoteNumberStoredAsString() throws Exception
128128
yaml = mapper.writeValueAsString(Collections.singletonMap("key", "-60")).trim();
129129
assertEquals("---\n" +
130130
"key: \"-60\"", yaml);
131+
132+
yaml = mapper.writeValueAsString(Collections.singletonMap("key", "-60.25")).trim();
133+
assertEquals("---\n" +
134+
"key: \"-60.25\"", yaml);
131135
}
132136

133137
public void testNonQuoteNumberStoredAsString() throws Exception

0 commit comments

Comments
 (0)