Skip to content

Commit

Permalink
Revert "⬆️ alibaba/fastjson2#1537"
Browse files Browse the repository at this point in the history
This reverts commit 3834ed0.
  • Loading branch information
trydofor committed Aug 24, 2023
1 parent 57b23f2 commit 1d8a588
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion observe/meepo
Submodule meepo updated from bafb7e to ef740e
2 changes: 1 addition & 1 deletion observe/mirana
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<meepo.version>1.4.1-SNAPSHOT</meepo.version> <!-- https://github.com/trydofor/pro.fessional.meepo -->
<shardingsphere.version>5.3.2</shardingsphere.version> <!-- https://github.com/apache/shardingsphere/releases -->
<kaptcha.version>2.3.3</kaptcha.version> <!-- https://github.com/trydofor/kaptcha -->
<fastjson2.version>2.0.34</fastjson2.version> <!-- https://github.com/alibaba/fastjson2/releases -->
<fastjson2.version>2.0.32</fastjson2.version> <!-- https://github.com/alibaba/fastjson2/releases -->
<fastjson.version>${fastjson2.version}</fastjson.version> <!-- https://github.com/alibaba/fastjson/releases -->
<kryo.version>5.5.0</kryo.version> <!-- https://github.com/EsotericSoftware/kryo/releases -->
<transmittable.version>2.14.2</transmittable.version> <!-- https://github.com/alibaba/transmittable-thread-local/releases -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public void testSingle() {
Assertions.assertEquals("\"123\"", JSON.toJSONString(Integer.valueOf("123"), Feature.WriteNonStringValueAsString));
Assertions.assertEquals("\"3.14\"", JSON.toJSONString(3.14, Feature.WriteNonStringValueAsString));
Assertions.assertEquals("\"3.14\"", JSON.toJSONString(Double.valueOf("3.14"), Feature.WriteNonStringValueAsString));
// BUG 期望是同Integer一致,得到`"3"`,而不是`3` Fixed 2.0.34
Assertions.assertEquals("\"3\"", JSON.toJSONString(new BigDecimal("3"), Feature.WriteNonStringValueAsString));
// BUG 期望是同Integer一致,得到`"3"`,而不是`3`
// Assertions.assertEquals("\"3\"", JSON.toJSONString(new BigDecimal("3"), Feature.WriteNonStringValueAsString));
// BUG 期望是同Double一致,得到`"3.14"`,而不是`3.14`
Assertions.assertEquals("\"3.14\"", JSON.toJSONString(new BigDecimal("3.14"), Feature.WriteNonStringValueAsString));
// Assertions.assertEquals("\"3.14\"", JSON.toJSONString(new BigDecimal("3.14"), Feature.WriteNonStringValueAsString));
}

}

0 comments on commit 1d8a588

Please sign in to comment.