mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -526,4 +526,13 @@ public class JSONObjectTest {
|
||||
// 集合类不支持转为JSONObject
|
||||
new JSONObject(new JSONArray(), JSONConfig.create());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void floatTest(){
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("c", 2.0F);
|
||||
|
||||
final String s = JSONUtil.toJsonStr(map);
|
||||
Console.log(s);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user