Lines Matching refs:FromValue
52 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST()
55 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST()
58 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST()
63 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST()
66 EXPECT_TRUE(FromValue(*ParseValue("true"), &actual)); in TEST()
69 EXPECT_FALSE(FromValue(*ParseValue("0"), &actual)); in TEST()
70 EXPECT_FALSE(FromValue(*ParseValue("1"), &actual)); in TEST()
75 EXPECT_TRUE(FromValue(*ParseValue("12.5"), &actual)); in TEST()
78 EXPECT_TRUE(FromValue(*ParseValue("-0.1"), &actual)); in TEST()
81 EXPECT_TRUE(FromValue(*ParseValue("17"), &actual)); in TEST()
84 EXPECT_FALSE(FromValue(*ParseValue("'1.0'"), &actual)); in TEST()
89 EXPECT_TRUE(FromValue(*ParseValue("'foo'"), &actual)); in TEST()
92 EXPECT_TRUE(FromValue(*ParseValue("'bar'"), &actual)); in TEST()
95 EXPECT_TRUE(FromValue(*ParseValue("''"), &actual)); in TEST()
98 EXPECT_FALSE(FromValue(*ParseValue("1"), &actual)); in TEST()
104 EXPECT_TRUE(FromValue(*in_value, &list)); in TEST()
111 EXPECT_TRUE(FromValue(*in_value, &dict)); in TEST()
117 EXPECT_TRUE(FromValue(*ParseValue("[1, 2, 'bar']"), &list)); in TEST()
123 EXPECT_TRUE(FromValue(*ParseValue("{'foo':'bar','baz': 1}"), &dict)); in TEST()
129 EXPECT_TRUE(FromValue(*ParseValue("[1, 2, 3, 4]"), &actual)); in TEST()
132 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
135 EXPECT_FALSE(FromValue(*ParseValue("[1, 2, 3, '4']"), &actual)); in TEST()
140 EXPECT_TRUE(FromValue(*ParseValue("[true, true, false]"), &actual)); in TEST()
143 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
146 EXPECT_FALSE(FromValue(*ParseValue("[true, 0]"), &actual)); in TEST()
151 EXPECT_TRUE(FromValue(*ParseValue("[1, 2.0, 6.5, -11.2]"), &actual)); in TEST()
154 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
157 EXPECT_FALSE(FromValue(*ParseValue("['s']"), &actual)); in TEST()
162 EXPECT_TRUE(FromValue(*ParseValue("['', 'foo', 'bar']"), &actual)); in TEST()
165 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
168 EXPECT_FALSE(FromValue(*ParseValue("[100]"), &actual)); in TEST()
173 EXPECT_TRUE(FromValue(*ParseValue("[[1,2], [], [3]]"), &actual)); in TEST()
176 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
179 EXPECT_FALSE(FromValue(*ParseValue("[100]"), &actual)); in TEST()
184 EXPECT_TRUE(FromValue(*ParseValue("{'foo':1, 'bar':2, 'baz':3}"), &actual)); in TEST()
188 EXPECT_TRUE(FromValue(*ParseValue("{}"), &actual)); in TEST()
191 EXPECT_FALSE(FromValue(*ParseValue("{'foo':1, 'bar':'2'}"), &actual)); in TEST()
196 EXPECT_TRUE(FromValue(*ParseValue("{'foo':[1,2], 'bar':[]}"), &actual)); in TEST()
201 EXPECT_TRUE(FromValue(*ParseValue("{}"), &actual)); in TEST()
204 EXPECT_FALSE(FromValue(*ParseValue("{'foo':[1], 'bar':[2,'3']}"), &actual)); in TEST()
209 EXPECT_TRUE(FromValue(*ParseValue("[{'foo':1,'bar':2},{'baz':3}]"), &actual)); in TEST()
214 EXPECT_TRUE(FromValue(*ParseValue("[]"), &actual)); in TEST()
217 EXPECT_FALSE(FromValue(*ParseValue("[{'foo':1}, 'bar']"), &actual)); in TEST()
222 EXPECT_TRUE(FromValue(*ParseValue("[['foo',1],['bar',2],[true]]"), &actual)); in TEST()
231 EXPECT_TRUE(FromValue(*ParseValue("[{'foo': 1}, {'bar': 2}]"), &actual)); in TEST()