@@ -47,7 +47,7 @@ inline void assert_schema_eq(const Confable& x, const Json& expect) {
47
47
}
48
48
49
49
inline void assert_schema_eq (const Confable& x, const char expect[]) {
50
- assert_eq (x.schema ().json_schema (), Json::parse (expect));
50
+ assert_eq (x.schema ().json_schema (), parse_json (expect));
51
51
}
52
52
53
53
inline void assert_validate (const Confable& x, const Conf& input) {
@@ -60,15 +60,15 @@ inline void assert_validate(const Confable& x, const Conf& input) {
60
60
}
61
61
62
62
inline void assert_validate (const Confable& x, const char json_input[]) {
63
- assert_validate (x, Conf{Json::parse (json_input)});
63
+ assert_validate (x, Conf{parse_json (json_input)});
64
64
}
65
65
66
66
inline void assert_invalidate (const Confable& x, const Conf& input) {
67
67
ASSERT_THROW (x.schema ().validate (input), SchemaError);
68
68
}
69
69
70
70
inline void assert_invalidate (const Confable& x, const char json_input[]) {
71
- assert_invalidate (x, Conf{Json::parse (json_input)});
71
+ assert_invalidate (x, Conf{parse_json (json_input)});
72
72
}
73
73
74
74
template <typename T>
@@ -78,7 +78,7 @@ inline void assert_to_json(const T& x, const Json& expect) {
78
78
79
79
template <typename T>
80
80
inline void assert_to_json (const T& x, const char json_expect[]) {
81
- assert_to_json (x, Json::parse (json_expect));
81
+ assert_to_json (x, parse_json (json_expect));
82
82
}
83
83
84
84
inline void assert_from_conf_throw (Confable& x, const Conf& input) {
@@ -88,7 +88,7 @@ inline void assert_from_conf_throw(Confable& x, const Conf& input) {
88
88
}
89
89
90
90
inline void assert_from_conf_throw (Confable& x, const char json_input[]) {
91
- assert_from_conf_throw (x, Conf{Json::parse (json_input)});
91
+ assert_from_conf_throw (x, Conf{parse_json (json_input)});
92
92
}
93
93
94
94
template <typename T>
@@ -98,7 +98,7 @@ inline void assert_from_conf(T& x, const Conf& input) {
98
98
99
99
template <typename T>
100
100
inline void assert_from_conf (T& x, const char json_input[]) {
101
- assert_from_conf (x, Conf{Json::parse (json_input)});
101
+ assert_from_conf (x, Conf{parse_json (json_input)});
102
102
}
103
103
104
104
template <typename T>
@@ -109,7 +109,7 @@ inline void assert_from_eq_to(T& x, const Json& identity) {
109
109
110
110
template <typename T>
111
111
inline void assert_from_eq_to (T& x, const char json_input[]) {
112
- assert_from_eq_to (x, Json::parse (json_input));
112
+ assert_from_eq_to (x, parse_json (json_input));
113
113
}
114
114
115
115
} // namespace fable
0 commit comments