Lines Matching refs:EXPECT_JSON_EQ
44 #define EXPECT_JSON_EQ(expected, actual) \ macro
104 EXPECT_JSON_EQ("[1, 2, 'foo']", *list); in TEST()
111 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict); in TEST()
117 EXPECT_JSON_EQ("[1, 2, 'bar']", *list); in TEST()
123 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict); in TEST()
223 EXPECT_JSON_EQ("['foo', 1]", *actual[0]); in TEST()
224 EXPECT_JSON_EQ("['bar', 2]", *actual[1]); in TEST()
225 EXPECT_JSON_EQ("[true]", *actual[2]); in TEST()
232 EXPECT_JSON_EQ("{'foo': 1}", *actual[0]); in TEST()
233 EXPECT_JSON_EQ("{'bar': 2}", *actual[1]); in TEST()
237 EXPECT_JSON_EQ("1234", *ToValue(1234)); in TEST()
238 EXPECT_JSON_EQ("true", *ToValue(true)); in TEST()
239 EXPECT_JSON_EQ("false", *ToValue(false)); in TEST()
240 EXPECT_JSON_EQ("12.5", *ToValue(12.5)); in TEST()
241 EXPECT_JSON_EQ("'foobar'", *ToValue("foobar")); in TEST()
245 EXPECT_JSON_EQ("[1, 2, 3]", *ToValue(std::vector<int>{1, 2, 3})); in TEST()
246 EXPECT_JSON_EQ("[]", *ToValue(std::vector<int>{})); in TEST()
247 EXPECT_JSON_EQ("[true, false]", *ToValue(std::vector<bool>{true, false})); in TEST()
248 EXPECT_JSON_EQ("['foo', 'bar']", in TEST()
250 EXPECT_JSON_EQ("[[1,2],[3]]", in TEST()
255 EXPECT_JSON_EQ("{'foo': 1, 'bar': 2}", in TEST()
257 EXPECT_JSON_EQ("{}", *ToValue(std::map<std::string, int>{})); in TEST()
258 EXPECT_JSON_EQ("{'foo': true}", in TEST()
260 EXPECT_JSON_EQ("{'foo': 1.1, 'bar': 2.2}", in TEST()