Lines Matching refs:ToValue
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()
249 *ToValue(std::vector<std::string>{"foo", "bar"})); in TEST()
251 *ToValue(std::vector<std::vector<int>>{{1, 2}, {3}})); in TEST()
256 *ToValue(std::map<std::string, int>{{"foo", 1}, {"bar", 2}})); in TEST()
257 EXPECT_JSON_EQ("{}", *ToValue(std::map<std::string, int>{})); in TEST()
259 *ToValue(std::map<std::string, bool>{{"foo", true}})); in TEST()
261 *ToValue(std::map<std::string, double>{{"foo", 1.1}, in TEST()