Lines Matching refs:buffer
43 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
47 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST()
48 CHECK_EQ("1", buffer.start()); in TEST()
51 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST()
52 CHECK_EQ("1", buffer.start()); in TEST()
55 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST()
56 CHECK_EQ("1", buffer.start()); in TEST()
59 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST()
60 CHECK_EQ("4294967295", buffer.start()); in TEST()
63 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)); in TEST()
64 CHECK_EQ("4294967296", buffer.start()); in TEST()
67 CHECK(FastFixedDtoa(1e21, 5, buffer, &length, &point)); in TEST()
68 CHECK_EQ("1", buffer.start()); in TEST()
72 CHECK(FastFixedDtoa(999999999999999868928.00, 2, buffer, &length, &point)); in TEST()
73 CHECK_EQ("999999999999999868928", buffer.start()); in TEST()
76 CHECK(FastFixedDtoa(6.9999999999999989514240000e+21, 5, buffer, in TEST()
78 CHECK_EQ("6999999999999998951424", buffer.start()); in TEST()
81 CHECK(FastFixedDtoa(1.5, 5, buffer, &length, &point)); in TEST()
82 CHECK_EQ("15", buffer.start()); in TEST()
85 CHECK(FastFixedDtoa(1.55, 5, buffer, &length, &point)); in TEST()
86 CHECK_EQ("155", buffer.start()); in TEST()
89 CHECK(FastFixedDtoa(1.55, 1, buffer, &length, &point)); in TEST()
90 CHECK_EQ("16", buffer.start()); in TEST()
93 CHECK(FastFixedDtoa(1.00000001, 15, buffer, &length, &point)); in TEST()
94 CHECK_EQ("100000001", buffer.start()); in TEST()
97 CHECK(FastFixedDtoa(0.1, 10, buffer, &length, &point)); in TEST()
98 CHECK_EQ("1", buffer.start()); in TEST()
101 CHECK(FastFixedDtoa(0.01, 10, buffer, &length, &point)); in TEST()
102 CHECK_EQ("1", buffer.start()); in TEST()
105 CHECK(FastFixedDtoa(0.001, 10, buffer, &length, &point)); in TEST()
106 CHECK_EQ("1", buffer.start()); in TEST()
109 CHECK(FastFixedDtoa(0.0001, 10, buffer, &length, &point)); in TEST()
110 CHECK_EQ("1", buffer.start()); in TEST()
113 CHECK(FastFixedDtoa(0.00001, 10, buffer, &length, &point)); in TEST()
114 CHECK_EQ("1", buffer.start()); in TEST()
117 CHECK(FastFixedDtoa(0.000001, 10, buffer, &length, &point)); in TEST()
118 CHECK_EQ("1", buffer.start()); in TEST()
121 CHECK(FastFixedDtoa(0.0000001, 10, buffer, &length, &point)); in TEST()
122 CHECK_EQ("1", buffer.start()); in TEST()
125 CHECK(FastFixedDtoa(0.00000001, 10, buffer, &length, &point)); in TEST()
126 CHECK_EQ("1", buffer.start()); in TEST()
129 CHECK(FastFixedDtoa(0.000000001, 10, buffer, &length, &point)); in TEST()
130 CHECK_EQ("1", buffer.start()); in TEST()
133 CHECK(FastFixedDtoa(0.0000000001, 15, buffer, &length, &point)); in TEST()
134 CHECK_EQ("1", buffer.start()); in TEST()
137 CHECK(FastFixedDtoa(0.00000000001, 15, buffer, &length, &point)); in TEST()
138 CHECK_EQ("1", buffer.start()); in TEST()
141 CHECK(FastFixedDtoa(0.000000000001, 15, buffer, &length, &point)); in TEST()
142 CHECK_EQ("1", buffer.start()); in TEST()
145 CHECK(FastFixedDtoa(0.0000000000001, 15, buffer, &length, &point)); in TEST()
146 CHECK_EQ("1", buffer.start()); in TEST()
149 CHECK(FastFixedDtoa(0.00000000000001, 15, buffer, &length, &point)); in TEST()
150 CHECK_EQ("1", buffer.start()); in TEST()
153 CHECK(FastFixedDtoa(0.000000000000001, 20, buffer, &length, &point)); in TEST()
154 CHECK_EQ("1", buffer.start()); in TEST()
157 CHECK(FastFixedDtoa(0.0000000000000001, 20, buffer, &length, &point)); in TEST()
158 CHECK_EQ("1", buffer.start()); in TEST()
161 CHECK(FastFixedDtoa(0.00000000000000001, 20, buffer, &length, &point)); in TEST()
162 CHECK_EQ("1", buffer.start()); in TEST()
165 CHECK(FastFixedDtoa(0.000000000000000001, 20, buffer, &length, &point)); in TEST()
166 CHECK_EQ("1", buffer.start()); in TEST()
169 CHECK(FastFixedDtoa(0.0000000000000000001, 20, buffer, &length, &point)); in TEST()
170 CHECK_EQ("1", buffer.start()); in TEST()
173 CHECK(FastFixedDtoa(0.00000000000000000001, 20, buffer, &length, &point)); in TEST()
174 CHECK_EQ("1", buffer.start()); in TEST()
177 CHECK(FastFixedDtoa(0.10000000004, 10, buffer, &length, &point)); in TEST()
178 CHECK_EQ("1", buffer.start()); in TEST()
181 CHECK(FastFixedDtoa(0.01000000004, 10, buffer, &length, &point)); in TEST()
182 CHECK_EQ("1", buffer.start()); in TEST()
185 CHECK(FastFixedDtoa(0.00100000004, 10, buffer, &length, &point)); in TEST()
186 CHECK_EQ("1", buffer.start()); in TEST()
189 CHECK(FastFixedDtoa(0.00010000004, 10, buffer, &length, &point)); in TEST()
190 CHECK_EQ("1", buffer.start()); in TEST()
193 CHECK(FastFixedDtoa(0.00001000004, 10, buffer, &length, &point)); in TEST()
194 CHECK_EQ("1", buffer.start()); in TEST()
197 CHECK(FastFixedDtoa(0.00000100004, 10, buffer, &length, &point)); in TEST()
198 CHECK_EQ("1", buffer.start()); in TEST()
201 CHECK(FastFixedDtoa(0.00000010004, 10, buffer, &length, &point)); in TEST()
202 CHECK_EQ("1", buffer.start()); in TEST()
205 CHECK(FastFixedDtoa(0.00000001004, 10, buffer, &length, &point)); in TEST()
206 CHECK_EQ("1", buffer.start()); in TEST()
209 CHECK(FastFixedDtoa(0.00000000104, 10, buffer, &length, &point)); in TEST()
210 CHECK_EQ("1", buffer.start()); in TEST()
213 CHECK(FastFixedDtoa(0.0000000001000004, 15, buffer, &length, &point)); in TEST()
214 CHECK_EQ("1", buffer.start()); in TEST()
217 CHECK(FastFixedDtoa(0.0000000000100004, 15, buffer, &length, &point)); in TEST()
218 CHECK_EQ("1", buffer.start()); in TEST()
221 CHECK(FastFixedDtoa(0.0000000000010004, 15, buffer, &length, &point)); in TEST()
222 CHECK_EQ("1", buffer.start()); in TEST()
225 CHECK(FastFixedDtoa(0.0000000000001004, 15, buffer, &length, &point)); in TEST()
226 CHECK_EQ("1", buffer.start()); in TEST()
229 CHECK(FastFixedDtoa(0.0000000000000104, 15, buffer, &length, &point)); in TEST()
230 CHECK_EQ("1", buffer.start()); in TEST()
233 CHECK(FastFixedDtoa(0.000000000000001000004, 20, buffer, &length, &point)); in TEST()
234 CHECK_EQ("1", buffer.start()); in TEST()
237 CHECK(FastFixedDtoa(0.000000000000000100004, 20, buffer, &length, &point)); in TEST()
238 CHECK_EQ("1", buffer.start()); in TEST()
241 CHECK(FastFixedDtoa(0.000000000000000010004, 20, buffer, &length, &point)); in TEST()
242 CHECK_EQ("1", buffer.start()); in TEST()
245 CHECK(FastFixedDtoa(0.000000000000000001004, 20, buffer, &length, &point)); in TEST()
246 CHECK_EQ("1", buffer.start()); in TEST()
249 CHECK(FastFixedDtoa(0.000000000000000000104, 20, buffer, &length, &point)); in TEST()
250 CHECK_EQ("1", buffer.start()); in TEST()
253 CHECK(FastFixedDtoa(0.000000000000000000014, 20, buffer, &length, &point)); in TEST()
254 CHECK_EQ("1", buffer.start()); in TEST()
257 CHECK(FastFixedDtoa(0.10000000006, 10, buffer, &length, &point)); in TEST()
258 CHECK_EQ("1000000001", buffer.start()); in TEST()
261 CHECK(FastFixedDtoa(0.01000000006, 10, buffer, &length, &point)); in TEST()
262 CHECK_EQ("100000001", buffer.start()); in TEST()
265 CHECK(FastFixedDtoa(0.00100000006, 10, buffer, &length, &point)); in TEST()
266 CHECK_EQ("10000001", buffer.start()); in TEST()
269 CHECK(FastFixedDtoa(0.00010000006, 10, buffer, &length, &point)); in TEST()
270 CHECK_EQ("1000001", buffer.start()); in TEST()
273 CHECK(FastFixedDtoa(0.00001000006, 10, buffer, &length, &point)); in TEST()
274 CHECK_EQ("100001", buffer.start()); in TEST()
277 CHECK(FastFixedDtoa(0.00000100006, 10, buffer, &length, &point)); in TEST()
278 CHECK_EQ("10001", buffer.start()); in TEST()
281 CHECK(FastFixedDtoa(0.00000010006, 10, buffer, &length, &point)); in TEST()
282 CHECK_EQ("1001", buffer.start()); in TEST()
285 CHECK(FastFixedDtoa(0.00000001006, 10, buffer, &length, &point)); in TEST()
286 CHECK_EQ("101", buffer.start()); in TEST()
289 CHECK(FastFixedDtoa(0.00000000106, 10, buffer, &length, &point)); in TEST()
290 CHECK_EQ("11", buffer.start()); in TEST()
293 CHECK(FastFixedDtoa(0.0000000001000006, 15, buffer, &length, &point)); in TEST()
294 CHECK_EQ("100001", buffer.start()); in TEST()
297 CHECK(FastFixedDtoa(0.0000000000100006, 15, buffer, &length, &point)); in TEST()
298 CHECK_EQ("10001", buffer.start()); in TEST()
301 CHECK(FastFixedDtoa(0.0000000000010006, 15, buffer, &length, &point)); in TEST()
302 CHECK_EQ("1001", buffer.start()); in TEST()
305 CHECK(FastFixedDtoa(0.0000000000001006, 15, buffer, &length, &point)); in TEST()
306 CHECK_EQ("101", buffer.start()); in TEST()
309 CHECK(FastFixedDtoa(0.0000000000000106, 15, buffer, &length, &point)); in TEST()
310 CHECK_EQ("11", buffer.start()); in TEST()
313 CHECK(FastFixedDtoa(0.000000000000001000006, 20, buffer, &length, &point)); in TEST()
314 CHECK_EQ("100001", buffer.start()); in TEST()
317 CHECK(FastFixedDtoa(0.000000000000000100006, 20, buffer, &length, &point)); in TEST()
318 CHECK_EQ("10001", buffer.start()); in TEST()
321 CHECK(FastFixedDtoa(0.000000000000000010006, 20, buffer, &length, &point)); in TEST()
322 CHECK_EQ("1001", buffer.start()); in TEST()
325 CHECK(FastFixedDtoa(0.000000000000000001006, 20, buffer, &length, &point)); in TEST()
326 CHECK_EQ("101", buffer.start()); in TEST()
329 CHECK(FastFixedDtoa(0.000000000000000000106, 20, buffer, &length, &point)); in TEST()
330 CHECK_EQ("11", buffer.start()); in TEST()
333 CHECK(FastFixedDtoa(0.000000000000000000016, 20, buffer, &length, &point)); in TEST()
334 CHECK_EQ("2", buffer.start()); in TEST()
337 CHECK(FastFixedDtoa(0.6, 0, buffer, &length, &point)); in TEST()
338 CHECK_EQ("1", buffer.start()); in TEST()
341 CHECK(FastFixedDtoa(0.96, 1, buffer, &length, &point)); in TEST()
342 CHECK_EQ("1", buffer.start()); in TEST()
345 CHECK(FastFixedDtoa(0.996, 2, buffer, &length, &point)); in TEST()
346 CHECK_EQ("1", buffer.start()); in TEST()
349 CHECK(FastFixedDtoa(0.9996, 3, buffer, &length, &point)); in TEST()
350 CHECK_EQ("1", buffer.start()); in TEST()
353 CHECK(FastFixedDtoa(0.99996, 4, buffer, &length, &point)); in TEST()
354 CHECK_EQ("1", buffer.start()); in TEST()
357 CHECK(FastFixedDtoa(0.999996, 5, buffer, &length, &point)); in TEST()
358 CHECK_EQ("1", buffer.start()); in TEST()
361 CHECK(FastFixedDtoa(0.9999996, 6, buffer, &length, &point)); in TEST()
362 CHECK_EQ("1", buffer.start()); in TEST()
365 CHECK(FastFixedDtoa(0.99999996, 7, buffer, &length, &point)); in TEST()
366 CHECK_EQ("1", buffer.start()); in TEST()
369 CHECK(FastFixedDtoa(0.999999996, 8, buffer, &length, &point)); in TEST()
370 CHECK_EQ("1", buffer.start()); in TEST()
373 CHECK(FastFixedDtoa(0.9999999996, 9, buffer, &length, &point)); in TEST()
374 CHECK_EQ("1", buffer.start()); in TEST()
377 CHECK(FastFixedDtoa(0.99999999996, 10, buffer, &length, &point)); in TEST()
378 CHECK_EQ("1", buffer.start()); in TEST()
381 CHECK(FastFixedDtoa(0.999999999996, 11, buffer, &length, &point)); in TEST()
382 CHECK_EQ("1", buffer.start()); in TEST()
385 CHECK(FastFixedDtoa(0.9999999999996, 12, buffer, &length, &point)); in TEST()
386 CHECK_EQ("1", buffer.start()); in TEST()
389 CHECK(FastFixedDtoa(0.99999999999996, 13, buffer, &length, &point)); in TEST()
390 CHECK_EQ("1", buffer.start()); in TEST()
393 CHECK(FastFixedDtoa(0.999999999999996, 14, buffer, &length, &point)); in TEST()
394 CHECK_EQ("1", buffer.start()); in TEST()
397 CHECK(FastFixedDtoa(0.9999999999999996, 15, buffer, &length, &point)); in TEST()
398 CHECK_EQ("1", buffer.start()); in TEST()
401 CHECK(FastFixedDtoa(0.00999999999999996, 16, buffer, &length, &point)); in TEST()
402 CHECK_EQ("1", buffer.start()); in TEST()
405 CHECK(FastFixedDtoa(0.000999999999999996, 17, buffer, &length, &point)); in TEST()
406 CHECK_EQ("1", buffer.start()); in TEST()
409 CHECK(FastFixedDtoa(0.0000999999999999996, 18, buffer, &length, &point)); in TEST()
410 CHECK_EQ("1", buffer.start()); in TEST()
413 CHECK(FastFixedDtoa(0.00000999999999999996, 19, buffer, &length, &point)); in TEST()
414 CHECK_EQ("1", buffer.start()); in TEST()
417 CHECK(FastFixedDtoa(0.000000999999999999996, 20, buffer, &length, &point)); in TEST()
418 CHECK_EQ("1", buffer.start()); in TEST()
421 CHECK(FastFixedDtoa(323423.234234, 10, buffer, &length, &point)); in TEST()
422 CHECK_EQ("323423234234", buffer.start()); in TEST()
425 CHECK(FastFixedDtoa(12345678.901234, 4, buffer, &length, &point)); in TEST()
426 CHECK_EQ("123456789012", buffer.start()); in TEST()
429 CHECK(FastFixedDtoa(98765.432109, 5, buffer, &length, &point)); in TEST()
430 CHECK_EQ("9876543211", buffer.start()); in TEST()
433 CHECK(FastFixedDtoa(42, 20, buffer, &length, &point)); in TEST()
434 CHECK_EQ("42", buffer.start()); in TEST()
437 CHECK(FastFixedDtoa(0.5, 0, buffer, &length, &point)); in TEST()
438 CHECK_EQ("1", buffer.start()); in TEST()
441 CHECK(FastFixedDtoa(1e-23, 10, buffer, &length, &point)); in TEST()
442 CHECK_EQ("", buffer.start()); in TEST()
445 CHECK(FastFixedDtoa(1e-123, 2, buffer, &length, &point)); in TEST()
446 CHECK_EQ("", buffer.start()); in TEST()
449 CHECK(FastFixedDtoa(1e-123, 0, buffer, &length, &point)); in TEST()
450 CHECK_EQ("", buffer.start()); in TEST()
453 CHECK(FastFixedDtoa(1e-23, 20, buffer, &length, &point)); in TEST()
454 CHECK_EQ("", buffer.start()); in TEST()
457 CHECK(FastFixedDtoa(1e-21, 20, buffer, &length, &point)); in TEST()
458 CHECK_EQ("", buffer.start()); in TEST()
461 CHECK(FastFixedDtoa(1e-22, 20, buffer, &length, &point)); in TEST()
462 CHECK_EQ("", buffer.start()); in TEST()
465 CHECK(FastFixedDtoa(6e-21, 20, buffer, &length, &point)); in TEST()
466 CHECK_EQ("1", buffer.start()); in TEST()
470 buffer, &length, &point)); in TEST()
471 CHECK_EQ("91193616301674545152", buffer.start()); in TEST()
475 buffer, &length, &point)); in TEST()
476 CHECK_EQ("4818466210276765", buffer.start()); in TEST()
480 buffer, &length, &point)); in TEST()
481 CHECK_EQ("", buffer.start()); in TEST()
485 buffer, &length, &point)); in TEST()
486 CHECK_EQ("1000000000000000128", buffer.start()); in TEST()
489 CHECK(FastFixedDtoa(2.10861548515811875e+15, 17, buffer, &length, &point)); in TEST()
490 CHECK_EQ("210861548515811875", buffer.start()); in TEST()
497 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
509 buffer, &length, &point); in TEST()
513 CHECK_EQ(current_test.representation, buffer.start()); in TEST()