mirror of
https://github.com/nlohmann/json.git
synced 2026-05-11 00:35:24 +00:00
more test cases
This commit is contained in:
+5
-5
@@ -1463,11 +1463,6 @@ class basic_json
|
||||
|
||||
switch (m_type)
|
||||
{
|
||||
case (value_t::null):
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
|
||||
case (value_t::object):
|
||||
{
|
||||
if (m_value.object->empty())
|
||||
@@ -1558,6 +1553,11 @@ class basic_json
|
||||
{
|
||||
return std::to_string(m_value.number_float);
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -1463,11 +1463,6 @@ class basic_json
|
||||
|
||||
switch (m_type)
|
||||
{
|
||||
case (value_t::null):
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
|
||||
case (value_t::object):
|
||||
{
|
||||
if (m_value.object->empty())
|
||||
@@ -1558,6 +1553,11 @@ class basic_json
|
||||
{
|
||||
return std::to_string(m_value.number_float);
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user