Lines Matching refs:buffer
61 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
65 BignumDtoa(1.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
66 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
69 BignumDtoa(1.0, BIGNUM_DTOA_FIXED, 3, buffer, &length, &point); in TEST()
71 TrimRepresentation(buffer); in TEST()
72 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
75 BignumDtoa(1.0, BIGNUM_DTOA_PRECISION, 3, buffer, &length, &point); in TEST()
77 TrimRepresentation(buffer); in TEST()
78 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
81 BignumDtoa(1.5, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
82 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
85 BignumDtoa(1.5, BIGNUM_DTOA_FIXED, 10, buffer, &length, &point); in TEST()
87 TrimRepresentation(buffer); in TEST()
88 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
91 BignumDtoa(1.5, BIGNUM_DTOA_PRECISION, 10, buffer, &length, &point); in TEST()
93 TrimRepresentation(buffer); in TEST()
94 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
98 BignumDtoa(min_double, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
99 CHECK_EQ(0, strcmp("5", buffer.start())); in TEST()
102 BignumDtoa(min_double, BIGNUM_DTOA_FIXED, 5, buffer, &length, &point); in TEST()
104 TrimRepresentation(buffer); in TEST()
105 CHECK_EQ(0, strcmp("", buffer.start())); in TEST()
107 BignumDtoa(min_double, BIGNUM_DTOA_PRECISION, 5, buffer, &length, &point); in TEST()
109 TrimRepresentation(buffer); in TEST()
110 CHECK_EQ(0, strcmp("49407", buffer.start())); in TEST()
114 BignumDtoa(max_double, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
115 CHECK_EQ(0, strcmp("17976931348623157", buffer.start())); in TEST()
118 BignumDtoa(max_double, BIGNUM_DTOA_PRECISION, 7, buffer, &length, &point); in TEST()
120 TrimRepresentation(buffer); in TEST()
121 CHECK_EQ(0, strcmp("1797693", buffer.start())); in TEST()
124 BignumDtoa(4294967272.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
125 CHECK_EQ(0, strcmp("4294967272", buffer.start())); in TEST()
128 BignumDtoa(4294967272.0, BIGNUM_DTOA_FIXED, 5, buffer, &length, &point); in TEST()
129 CHECK_EQ(0, strcmp("429496727200000", buffer.start())); in TEST()
133 BignumDtoa(4294967272.0, BIGNUM_DTOA_PRECISION, 14, buffer, &length, &point); in TEST()
135 TrimRepresentation(buffer); in TEST()
136 CHECK_EQ(0, strcmp("4294967272", buffer.start())); in TEST()
140 buffer, &length, &point); in TEST()
141 CHECK_EQ(0, strcmp("4185580496821357", buffer.start())); in TEST()
145 buffer, &length, &point); in TEST()
147 TrimRepresentation(buffer); in TEST()
148 CHECK_EQ(0, strcmp("41855804968213567225", buffer.start())); in TEST()
152 buffer, &length, &point); in TEST()
153 CHECK_EQ(0, strcmp("5562684646268003", buffer.start())); in TEST()
157 buffer, &length, &point); in TEST()
159 TrimRepresentation(buffer); in TEST()
160 CHECK_EQ(0, strcmp("6", buffer.start())); in TEST()
164 buffer, &length, &point); in TEST()
165 CHECK_EQ(0, strcmp("2147483648", buffer.start())); in TEST()
170 buffer, &length, &point); in TEST()
172 TrimRepresentation(buffer); in TEST()
173 CHECK_EQ(0, strcmp("2147483648", buffer.start())); in TEST()
177 buffer, &length, &point); in TEST()
179 TrimRepresentation(buffer); in TEST()
180 CHECK_EQ(0, strcmp("21475", buffer.start())); in TEST()
184 buffer, &length, &point); in TEST()
185 CHECK_EQ(0, strcmp("35844466002796428", buffer.start())); in TEST()
189 buffer, &length, &point); in TEST()
191 TrimRepresentation(buffer); in TEST()
192 CHECK_EQ(0, strcmp("35844466", buffer.start())); in TEST()
197 BignumDtoa(v, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
198 CHECK_EQ(0, strcmp("22250738585072014", buffer.start())); in TEST()
201 BignumDtoa(v, BIGNUM_DTOA_PRECISION, 20, buffer, &length, &point); in TEST()
203 TrimRepresentation(buffer); in TEST()
204 CHECK_EQ(0, strcmp("22250738585072013831", buffer.start())); in TEST()
209 BignumDtoa(v, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
210 CHECK_EQ(0, strcmp("2225073858507201", buffer.start())); in TEST()
213 BignumDtoa(v, BIGNUM_DTOA_PRECISION, 20, buffer, &length, &point); in TEST()
215 TrimRepresentation(buffer); in TEST()
216 CHECK_EQ(0, strcmp("2225073858507200889", buffer.start())); in TEST()
220 buffer, &length, &point); in TEST()
221 CHECK_EQ(0, strcmp("4128420500802942", buffer.start())); in TEST()
225 BignumDtoa(v, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
226 CHECK_EQ(0, strcmp("39292015898194143", buffer.start())); in TEST()
229 BignumDtoa(v, BIGNUM_DTOA_FIXED, 5, buffer, &length, &point); in TEST()
231 TrimRepresentation(buffer); in TEST()
232 CHECK_EQ(0, strcmp("4194304", buffer.start())); in TEST()
235 BignumDtoa(v, BIGNUM_DTOA_PRECISION, 19, buffer, &length, &point); in TEST()
237 TrimRepresentation(buffer); in TEST()
238 CHECK_EQ(0, strcmp("3316133905216739056", buffer.start())); in TEST()
242 BignumDtoa(v, BIGNUM_DTOA_PRECISION, 4, buffer, &length, &point); in TEST()
244 TrimRepresentation(buffer); in TEST()
245 CHECK_EQ(0, strcmp("7989", buffer.start())); in TEST()
249 BignumDtoa(v, BIGNUM_DTOA_FIXED, 1, buffer, &length, &point); in TEST()
251 TrimRepresentation(buffer); in TEST()
252 CHECK_EQ(0, strcmp("100000000000000128", buffer.start())); in TEST()
259 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
268 BignumDtoa(v, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
270 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()
277 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
287 BignumDtoa(v, BIGNUM_DTOA_FIXED, number_digits, buffer, &length, &point); in TEST()
290 TrimRepresentation(buffer); in TEST()
291 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()
298 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
309 buffer, &length, &point); in TEST()
312 TrimRepresentation(buffer); in TEST()
313 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()