mirror of
https://github.com/nlohmann/json.git
synced 2026-11-18 05:00:19 +00:00
moved from Catch to doctest for unit tests
This commit is contained in:
1 parent
e5753b14a8
commit
2f44ac1def
52 files changed
+5517
-11854
No files matched your search
@@ -27,7 +27,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "catch.hpp"
|
||||
#include "doctest_compatibility.h"
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
using nlohmann::json;
|
||||
@@ -457,7 +457,7 @@ TEST_CASE("RFC 7159 examples")
|
||||
}
|
||||
)";
|
||||
|
||||
CHECK_NOTHROW(json(json_contents));
|
||||
CHECK_NOTHROW(auto tmp = json(json_contents));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -484,7 +484,7 @@ TEST_CASE("RFC 7159 examples")
|
||||
"Country": "US"
|
||||
}
|
||||
])";
|
||||
CHECK_NOTHROW(json(json_contents));
|
||||
CHECK_NOTHROW(auto tmp = json(json_contents));
|
||||
}
|
||||
|
||||
CHECK(json::parse("\"Hello world!\"") == json("Hello world!"));
|
||||
|
||||
Reference in new issue
Block a user