• Home
  • Raw
  • Download

Lines Matching refs:buffer

61   Vector<char> buffer(buffer_container, kBufferSize);  in TEST()  local
66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
67 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point); in TEST()
72 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); in TEST()
77 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
81 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point); in TEST()
86 TrimRepresentation(buffer); in TEST()
87 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
90 DoubleToAscii(1.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); in TEST()
92 TrimRepresentation(buffer); in TEST()
93 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
96 DoubleToAscii(1.5, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
97 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
100 DoubleToAscii(1.5, DTOA_FIXED, 10, buffer, &sign, &length, &point); in TEST()
102 TrimRepresentation(buffer); in TEST()
103 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
106 DoubleToAscii(1.5, DTOA_PRECISION, 10, buffer, &sign, &length, &point); in TEST()
108 TrimRepresentation(buffer); in TEST()
109 CHECK_EQ(0, strcmp("15", buffer.start())); in TEST()
113 DoubleToAscii(min_double, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
114 CHECK_EQ(0, strcmp("5", buffer.start())); in TEST()
117 DoubleToAscii(min_double, DTOA_FIXED, 5, buffer, &sign, &length, &point); in TEST()
119 TrimRepresentation(buffer); in TEST()
120 CHECK_EQ(0, strcmp("", buffer.start())); in TEST()
123 DoubleToAscii(min_double, DTOA_PRECISION, 5, buffer, &sign, &length, &point); in TEST()
125 TrimRepresentation(buffer); in TEST()
126 CHECK_EQ(0, strcmp("49407", buffer.start())); in TEST()
130 DoubleToAscii(max_double, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
131 CHECK_EQ(0, strcmp("17976931348623157", buffer.start())); in TEST()
134 DoubleToAscii(max_double, DTOA_PRECISION, 7, buffer, &sign, &length, &point); in TEST()
136 TrimRepresentation(buffer); in TEST()
137 CHECK_EQ(0, strcmp("1797693", buffer.start())); in TEST()
140 DoubleToAscii(4294967272.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
141 CHECK_EQ(0, strcmp("4294967272", buffer.start())); in TEST()
144 DoubleToAscii(4294967272.0, DTOA_FIXED, 5, buffer, &sign, &length, &point); in TEST()
146 TrimRepresentation(buffer); in TEST()
147 CHECK_EQ(0, strcmp("4294967272", buffer.start())); in TEST()
152 buffer, &sign, &length, &point); in TEST()
154 TrimRepresentation(buffer); in TEST()
155 CHECK_EQ(0, strcmp("4294967272", buffer.start())); in TEST()
159 buffer, &sign, &length, &point); in TEST()
160 CHECK_EQ(0, strcmp("4185580496821357", buffer.start())); in TEST()
164 buffer, &sign, &length, &point); in TEST()
166 TrimRepresentation(buffer); in TEST()
167 CHECK_EQ(0, strcmp("41855804968213567225", buffer.start())); in TEST()
171 buffer, &sign, &length, &point); in TEST()
172 CHECK_EQ(0, strcmp("5562684646268003", buffer.start())); in TEST()
176 buffer, &sign, &length, &point); in TEST()
178 TrimRepresentation(buffer); in TEST()
179 CHECK_EQ(0, strcmp("6", buffer.start())); in TEST()
183 buffer, &sign, &length, &point); in TEST()
185 CHECK_EQ(0, strcmp("2147483648", buffer.start())); in TEST()
189 DoubleToAscii(-2147483648.0, DTOA_FIXED, 2, buffer, &sign, &length, &point); in TEST()
191 TrimRepresentation(buffer); in TEST()
193 CHECK_EQ(0, strcmp("2147483648", buffer.start())); in TEST()
197 buffer, &sign, &length, &point); in TEST()
199 TrimRepresentation(buffer); in TEST()
201 CHECK_EQ(0, strcmp("21475", buffer.start())); in TEST()
205 buffer, &sign, &length, &point); in TEST()
207 CHECK_EQ(0, strcmp("35844466002796428", buffer.start())); in TEST()
211 buffer, &sign, &length, &point); in TEST()
214 TrimRepresentation(buffer); in TEST()
215 CHECK_EQ(0, strcmp("35844466", buffer.start())); in TEST()
220 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
221 CHECK_EQ(0, strcmp("22250738585072014", buffer.start())); in TEST()
224 DoubleToAscii(v, DTOA_PRECISION, 20, buffer, &sign, &length, &point); in TEST()
226 TrimRepresentation(buffer); in TEST()
227 CHECK_EQ(0, strcmp("22250738585072013831", buffer.start())); in TEST()
232 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
233 CHECK_EQ(0, strcmp("2225073858507201", buffer.start())); in TEST()
236 DoubleToAscii(v, DTOA_PRECISION, 20, buffer, &sign, &length, &point); in TEST()
238 TrimRepresentation(buffer); in TEST()
239 CHECK_EQ(0, strcmp("2225073858507200889", buffer.start())); in TEST()
243 buffer, &sign, &length, &point); in TEST()
245 CHECK_EQ(0, strcmp("4128420500802942", buffer.start())); in TEST()
249 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
250 CHECK_EQ(0, strcmp("39292015898194143", buffer.start())); in TEST()
253 DoubleToAscii(v, DTOA_FIXED, 5, buffer, &sign, &length, &point); in TEST()
255 TrimRepresentation(buffer); in TEST()
256 CHECK_EQ(0, strcmp("4194304", buffer.start())); in TEST()
259 DoubleToAscii(v, DTOA_PRECISION, 19, buffer, &sign, &length, &point); in TEST()
261 TrimRepresentation(buffer); in TEST()
262 CHECK_EQ(0, strcmp("3316133905216739056", buffer.start())); in TEST()
269 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
279 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
282 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()
289 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
300 DoubleToAscii(v, DTOA_FIXED, number_digits, buffer, &sign, &length, &point); in TEST()
304 TrimRepresentation(buffer); in TEST()
305 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()
312 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
324 buffer, &sign, &length, &point); in TEST()
328 TrimRepresentation(buffer); in TEST()
329 CHECK_EQ(0, strcmp(current_test.representation, buffer.start())); in TEST()