• Home
  • Raw
  • Download

Lines Matching refs:ParseNumber

34   EXPECT_FALSE(ParseNumber(nullptr, &i16));  in TEST()
35 EXPECT_FALSE(ParseNumber("", &i16)); in TEST()
36 EXPECT_FALSE(ParseNumber("0=", &i16)); in TEST()
38 EXPECT_TRUE(ParseNumber("0", &i16)); in TEST()
40 EXPECT_TRUE(ParseNumber("32767", &i16)); in TEST()
42 EXPECT_TRUE(ParseNumber("-32768", &i16)); in TEST()
44 EXPECT_TRUE(ParseNumber("-0", &i16)); in TEST()
49 EXPECT_FALSE(ParseNumber("32768", &i16)); in TEST()
50 EXPECT_FALSE(ParseNumber("65535", &i16)); in TEST()
53 EXPECT_TRUE(ParseNumber("0x7fff", &i16)); in TEST()
56 EXPECT_FALSE(ParseNumber("0xffff", &i16)); in TEST()
62 EXPECT_FALSE(ParseNumber(nullptr, &u16)); in TEST()
63 EXPECT_FALSE(ParseNumber("", &u16)); in TEST()
64 EXPECT_FALSE(ParseNumber("0=", &u16)); in TEST()
66 EXPECT_TRUE(ParseNumber("0", &u16)); in TEST()
68 EXPECT_TRUE(ParseNumber("65535", &u16)); in TEST()
70 EXPECT_FALSE(ParseNumber("65536", &u16)); in TEST()
73 EXPECT_FALSE(ParseNumber("-1", &u16)); in TEST()
74 EXPECT_TRUE(ParseNumber("0xffff", &u16)); in TEST()
76 EXPECT_FALSE(ParseNumber("0x10000", &u16)); in TEST()
83 EXPECT_FALSE(ParseNumber(nullptr, &i32)); in TEST()
84 EXPECT_FALSE(ParseNumber("", &i32)); in TEST()
85 EXPECT_FALSE(ParseNumber("0=", &i32)); in TEST()
88 EXPECT_TRUE(ParseNumber("0", &i32)); in TEST()
90 EXPECT_TRUE(ParseNumber("2147483647", &i32)); in TEST()
92 EXPECT_FALSE(ParseNumber("2147483648", &i32)); in TEST()
93 EXPECT_TRUE(ParseNumber("-0", &i32)); in TEST()
95 EXPECT_TRUE(ParseNumber("-1", &i32)); in TEST()
97 EXPECT_TRUE(ParseNumber("-2147483648", &i32)); in TEST()
101 EXPECT_TRUE(ParseNumber("0x7fffffff", &i32)); in TEST()
103 EXPECT_FALSE(ParseNumber("0x80000000", &i32)); in TEST()
104 EXPECT_TRUE(ParseNumber("-0x000", &i32)); in TEST()
106 EXPECT_TRUE(ParseNumber("-0x001", &i32)); in TEST()
108 EXPECT_TRUE(ParseNumber("-0x80000000", &i32)); in TEST()
116 EXPECT_FALSE(ParseNumber(nullptr, &u32)); in TEST()
117 EXPECT_FALSE(ParseNumber("", &u32)); in TEST()
118 EXPECT_FALSE(ParseNumber("0=", &u32)); in TEST()
121 EXPECT_TRUE(ParseNumber("0", &u32)); in TEST()
123 EXPECT_TRUE(ParseNumber("4294967295", &u32)); in TEST()
125 EXPECT_FALSE(ParseNumber("4294967296", &u32)); in TEST()
128 EXPECT_TRUE(ParseNumber("0xffffffff", &u32)); in TEST()
132 EXPECT_FALSE(ParseNumber("-1", &u32)); in TEST()
137 EXPECT_FALSE(ParseNumber(nullptr, &i64)); in TEST()
138 EXPECT_FALSE(ParseNumber("", &i64)); in TEST()
139 EXPECT_FALSE(ParseNumber("0=", &i64)); in TEST()
140 EXPECT_TRUE(ParseNumber("0", &i64)); in TEST()
142 EXPECT_TRUE(ParseNumber("0x7fffffffffffffff", &i64)); in TEST()
144 EXPECT_TRUE(ParseNumber("-0", &i64)); in TEST()
146 EXPECT_TRUE(ParseNumber("-1", &i64)); in TEST()
152 EXPECT_FALSE(ParseNumber(nullptr, &u64)); in TEST()
153 EXPECT_FALSE(ParseNumber("", &u64)); in TEST()
154 EXPECT_FALSE(ParseNumber("0=", &u64)); in TEST()
155 EXPECT_TRUE(ParseNumber("0", &u64)); in TEST()
157 EXPECT_TRUE(ParseNumber("0xffffffffffffffff", &u64)); in TEST()
161 EXPECT_FALSE(ParseNumber("-1", &u64)); in TEST()
167 EXPECT_FALSE(ParseNumber(nullptr, &f)); in TEST()
168 EXPECT_FALSE(ParseNumber("", &f)); in TEST()
169 EXPECT_FALSE(ParseNumber("0=", &f)); in TEST()
172 EXPECT_TRUE(ParseNumber("0", &f)); in TEST()
174 EXPECT_TRUE(ParseNumber("42", &f)); in TEST()
176 EXPECT_TRUE(ParseNumber("2.5", &f)); in TEST()
178 EXPECT_TRUE(ParseNumber("-32.5", &f)); in TEST()
180 EXPECT_TRUE(ParseNumber("1e38", &f)); in TEST()
182 EXPECT_TRUE(ParseNumber("-1e38", &f)); in TEST()
194 EXPECT_TRUE(ParseNumber("1e38", &f)); in TEST()
196 EXPECT_TRUE(ParseNumber("-1e38", &f)); in TEST()
198 EXPECT_FALSE(ParseNumber("1e40", &f)); in TEST()
199 EXPECT_FALSE(ParseNumber("-1e40", &f)); in TEST()
200 EXPECT_FALSE(ParseNumber("1e400", &f)); in TEST()
201 EXPECT_FALSE(ParseNumber("-1e400", &f)); in TEST()
207 EXPECT_FALSE(ParseNumber(nullptr, &f)); in TEST()
208 EXPECT_FALSE(ParseNumber("", &f)); in TEST()
209 EXPECT_FALSE(ParseNumber("0=", &f)); in TEST()
212 EXPECT_TRUE(ParseNumber("0", &f)); in TEST()
214 EXPECT_TRUE(ParseNumber("42", &f)); in TEST()
216 EXPECT_TRUE(ParseNumber("2.5", &f)); in TEST()
218 EXPECT_TRUE(ParseNumber("-32.5", &f)); in TEST()
220 EXPECT_TRUE(ParseNumber("1e38", &f)); in TEST()
222 EXPECT_TRUE(ParseNumber("-1e38", &f)); in TEST()
225 EXPECT_TRUE(ParseNumber("1e40", &f)); in TEST()
227 EXPECT_TRUE(ParseNumber("-1e40", &f)); in TEST()
239 EXPECT_TRUE(ParseNumber("1e38", &f)); in TEST()
241 EXPECT_TRUE(ParseNumber("-1e38", &f)); in TEST()
243 EXPECT_TRUE(ParseNumber("1e40", &f)); in TEST()
245 EXPECT_TRUE(ParseNumber("-1e40", &f)); in TEST()
247 EXPECT_FALSE(ParseNumber("1e400", &f)); in TEST()
248 EXPECT_FALSE(ParseNumber("-1e400", &f)); in TEST()
259 EXPECT_FALSE(ParseNumber(nullptr, &f)); in TEST()
260 EXPECT_TRUE(ParseNumber("-0.0", &f)); in TEST()
262 EXPECT_TRUE(ParseNumber("1.0", &f)); in TEST()
266 EXPECT_FALSE(ParseNumber("1e38", &f)); in TEST()
267 EXPECT_FALSE(ParseNumber("-1e38", &f)); in TEST()
270 EXPECT_FALSE(ParseNumber("1e40", &f)); in TEST()
271 EXPECT_FALSE(ParseNumber("-1e40", &f)); in TEST()
274 EXPECT_FALSE(ParseNumber("1e400", &f)); in TEST()
275 EXPECT_FALSE(ParseNumber("-1e400", &f)); in TEST()