#include "catch.hpp"
#include <array>
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "json.hpp"
Go to the source code of this file.
Defines | |
#define | CATCH_CONFIG_MAIN |
#define | private public |
Functions | |
CHECK (json::parse("42")==json(42)) | |
CHECK (json::parse("true")==json(true)) | |
CHECK (j[""_json_pointer]==j) | |
CHECK (j["/foo"_json_pointer]==j["foo"]) | |
CHECK (j["/foo/0"_json_pointer]==j["foo"][0]) | |
CHECK (j["/foo/1"_json_pointer]==j["foo"][1]) | |
SECTION ("user-defined string literal") | |
SECTION ("array access") | |
SECTION ("flatten") | |
SECTION ("string representation") | |
TEST_CASE ("constructors") | |
TEST_CASE ("other constructors and destructor") | |
TEST_CASE ("object inspection") | |
TEST_CASE ("value conversion") | |
TEST_CASE ("pointer access") | |
TEST_CASE ("reference access") | |
TEST_CASE ("element access") | |
TEST_CASE ("iterators") | |
TEST_CASE ("capacity") | |
TEST_CASE ("modifiers") | |
TEST_CASE ("lexicographical comparison operators") | |
TEST_CASE ("serialization") | |
TEST_CASE ("deserialization") | |
TEST_CASE ("iterator class") | |
TEST_CASE ("const_iterator class") | |
TEST_CASE ("convenience functions") | |
TEST_CASE ("lexer class") | |
TEST_CASE ("parser class") | |
TEST_CASE ("README","[hide]") | |
TEST_CASE ("algorithms") | |
TEST_CASE ("concepts") | |
TEST_CASE ("iterator_wrapper") | |
TEST_CASE ("compliance tests from json.org") | |
TEST_CASE ("compliance tests from nativejson-benchmark") | |
TEST_CASE ("test suite from json-test-suite") | |
TEST_CASE ("json.org examples") | |
TEST_CASE ("RFC 7159 examples") | |
TEST_CASE ("Unicode","[hide]") | |
TEST_CASE ("JSON pointers") | |
TEST_CASE ("JSON patch") | |
TEST_CASE ("regression tests") | |
Variables | |
_json |
#define CATCH_CONFIG_MAIN |
CHECK | ( | json:: | parse"42" = =json(42) | ) |
CHECK | ( | json:: | parse"true" = =json(true) | ) |