Lines Matching defs:EXPECT_JSON_EQ
45 #define EXPECT_JSON_EQ(expected, actual) \
105 EXPECT_JSON_EQ("[1, 2, 'foo']", *list);
112 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict);
118 EXPECT_JSON_EQ("[1, 2, 'bar']", *list);
124 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict);
224 EXPECT_JSON_EQ("['foo', 1]", *actual[0]);
225 EXPECT_JSON_EQ("['bar', 2]", *actual[1]);
226 EXPECT_JSON_EQ("[true]", *actual[2]);
233 EXPECT_JSON_EQ("{'foo': 1}", *actual[0]);
234 EXPECT_JSON_EQ("{'bar': 2}", *actual[1]);
238 EXPECT_JSON_EQ("1234", *ToValue(1234));
239 EXPECT_JSON_EQ("true", *ToValue(true));
240 EXPECT_JSON_EQ("false", *ToValue(false));
241 EXPECT_JSON_EQ("12.5", *ToValue(12.5));
242 EXPECT_JSON_EQ("'foobar'", *ToValue("foobar"));
246 EXPECT_JSON_EQ("[1, 2, 3]", *ToValue(std::vector<int>{1, 2, 3}));
247 EXPECT_JSON_EQ("[]", *ToValue(std::vector<int>{}));
248 EXPECT_JSON_EQ("[true, false]", *ToValue(std::vector<bool>{true, false}));
249 EXPECT_JSON_EQ("['foo', 'bar']",
251 EXPECT_JSON_EQ("[[1,2],[3]]",
256 EXPECT_JSON_EQ("{'foo': 1, 'bar': 2}",
258 EXPECT_JSON_EQ("{}", *ToValue(std::map<std::string, int>{}));
259 EXPECT_JSON_EQ("{'foo': true}",
261 EXPECT_JSON_EQ("{'foo': 1.1, 'bar': 2.2}",