Lines Matching full:assert_eq
48 ASSERT_EQ(buffer[0], 2);
49 ASSERT_EQ(result, buffer + 1);
54 ASSERT_EQ(buffer[0], 127);
55 ASSERT_EQ(result, buffer + 1);
60 ASSERT_EQ(buffer[0], 0 + 0x80);
61 ASSERT_EQ(buffer[1], 1);
62 ASSERT_EQ(result, buffer + 2);
67 ASSERT_EQ(buffer[0], 1 + 0x80);
68 ASSERT_EQ(buffer[1], 1);
69 ASSERT_EQ(result, buffer + 2);
74 ASSERT_EQ(buffer[0], 2 + 0x80);
75 ASSERT_EQ(buffer[1], 1);
76 ASSERT_EQ(result, buffer + 2);
81 ASSERT_EQ(buffer[0], 57 + 0x80);
82 ASSERT_EQ(buffer[1], 100);
83 ASSERT_EQ(result, buffer + 2);
94 ASSERT_EQ(buffer[0], 2);
95 ASSERT_EQ(result, buffer + 1);
100 ASSERT_EQ(buffer[0], 127);
101 ASSERT_EQ(result, buffer + 1);
106 ASSERT_EQ(buffer[0], 0 + 0x80);
107 ASSERT_EQ(buffer[1], 1);
108 ASSERT_EQ(result, buffer + 2);
113 ASSERT_EQ(buffer[0], 1 + 0x80);
114 ASSERT_EQ(buffer[1], 1);
115 ASSERT_EQ(result, buffer + 2);
120 ASSERT_EQ(buffer[0], 2 + 0x80);
121 ASSERT_EQ(buffer[1], 1);
122 ASSERT_EQ(result, buffer + 2);
127 ASSERT_EQ(buffer[0], 57 + 0x80);
128 ASSERT_EQ(buffer[1], 100);
129 ASSERT_EQ(result, buffer + 2);
140 ASSERT_EQ(buffer[0], 2);
141 ASSERT_EQ(result, buffer + 1);
146 ASSERT_EQ(buffer[0], 0x7e);
147 ASSERT_EQ(result, buffer + 1);
152 ASSERT_EQ(buffer[0], 127 + 0x80);
153 ASSERT_EQ(buffer[1], 0);
154 ASSERT_EQ(result, buffer + 2);
159 ASSERT_EQ(buffer[0], 1 + 0x80);
160 ASSERT_EQ(buffer[1], 0x7f);
161 ASSERT_EQ(result, buffer + 2);
166 ASSERT_EQ(buffer[0], 0 + 0x80);
167 ASSERT_EQ(buffer[1], 1);
168 ASSERT_EQ(result, buffer + 2);
173 ASSERT_EQ(buffer[0], 0 + 0x80);
174 ASSERT_EQ(buffer[1], 0x7f);
175 ASSERT_EQ(result, buffer + 2);
180 ASSERT_EQ(buffer[0], 1 + 0x80);
181 ASSERT_EQ(buffer[1], 1);
182 ASSERT_EQ(result, buffer + 2);
187 ASSERT_EQ(buffer[0], 0x7f + 0x80);
188 ASSERT_EQ(buffer[1], 0x7e);
189 ASSERT_EQ(result, buffer + 2);
234 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 2);
239 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -2);
244 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 127);
249 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -127);
254 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 128);
259 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -128);
264 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 129);
269 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -129);
280 ASSERT_EQ(p, content + 1);
285 ASSERT_EQ(p, content + 1);
291 ASSERT_EQ(p, content + 2);
301 ASSERT_EQ(buffer[0], 0);
302 ASSERT_EQ(result, buffer + 1);
307 ASSERT_EQ(buffer[0], 0);
308 ASSERT_EQ(result, buffer + 1);
313 ASSERT_EQ(buffer[0], 1);
314 ASSERT_EQ(result, buffer + 1);
319 ASSERT_EQ(buffer[0], 1);
320 ASSERT_EQ(result, buffer + 1);
325 ASSERT_EQ(buffer[0], 0x80);
326 ASSERT_EQ(buffer[1], 0x7f);
327 ASSERT_EQ(result, buffer + 2);
332 ASSERT_EQ(buffer[0], 0x80);
333 ASSERT_EQ(buffer[1], 0x7f);
334 ASSERT_EQ(result, buffer + 2);
339 ASSERT_EQ(buffer[0], 0xb4);
340 ASSERT_EQ(buffer[1], 0x07);
341 ASSERT_EQ(result, buffer + 2);
346 ASSERT_EQ(buffer[0], 0xb4);
347 ASSERT_EQ(buffer[1], 0x07);
348 ASSERT_EQ(result, buffer + 2);
353 ASSERT_EQ(buffer[0], 0x8c);
354 ASSERT_EQ(buffer[1], 0x08);
355 ASSERT_EQ(result, buffer + 2);
360 ASSERT_EQ(buffer[0], 0x8c);
361 ASSERT_EQ(buffer[1], 0x08);
362 ASSERT_EQ(result, buffer + 2);
367 ASSERT_EQ(buffer[0], 0xff);
368 ASSERT_EQ(buffer[1], 0xff);
369 ASSERT_EQ(buffer[2], 0xff);
370 ASSERT_EQ(buffer[3], 0xff);
371 ASSERT_EQ(buffer[4], 0xf);
372 ASSERT_EQ(result, buffer + 5);
377 ASSERT_EQ(buffer[0], 0xff);
378 ASSERT_EQ(buffer[1], 0xff);
379 ASSERT_EQ(buffer[2], 0xff);
380 ASSERT_EQ(buffer[3], 0xff);
381 ASSERT_EQ(buffer[4], 0xf);
382 ASSERT_EQ(result, buffer + 5);
392 ASSERT_EQ(leb128::decode<int64_t>(p), 0);
393 ASSERT_EQ(p, content + 1);
397 ASSERT_EQ(leb128::decode<int64_t>(p), 1);
398 ASSERT_EQ(p, content + 1);
402 ASSERT_EQ(leb128::decode<int64_t>(p), -1);
403 ASSERT_EQ(p, content + 1);
407 ASSERT_EQ(leb128::decode<int64_t>(p), 0x3c);
408 ASSERT_EQ(p, content + 1);
418 ASSERT_EQ(buffer[0], 0);
419 ASSERT_EQ(result, buffer + 1);
424 ASSERT_EQ(buffer[0], 0);
425 ASSERT_EQ(result, buffer + 1);
430 ASSERT_EQ(buffer[0], 1);
431 ASSERT_EQ(result, buffer + 1);
436 ASSERT_EQ(buffer[0], 1);
437 ASSERT_EQ(result, buffer + 1);
442 ASSERT_EQ(buffer[0], 0x7f);
443 ASSERT_EQ(result, buffer + 1);
448 ASSERT_EQ(buffer[0], 0x7f);
449 ASSERT_EQ(result, buffer + 1);
466 ASSERT_EQ(result, buffer + encode_size);
467 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value);
468 ASSERT_EQ(encode_size, decode_size);
473 ASSERT_EQ(result, buffer + encode_size);
474 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value2);
475 ASSERT_EQ(encode_size, decode_size);
480 ASSERT_EQ(result, buffer + encode_size);
481 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), value3);
482 ASSERT_EQ(encode_size, decode_size);
487 ASSERT_EQ(result, buffer + encode_size);
488 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), -value3);
489 ASSERT_EQ(encode_size, decode_size);
500 ASSERT_EQ(result, buffer + 3);
501 ASSERT_EQ(buffer[0], 0xd4);
502 ASSERT_EQ(buffer[1], 0xb6);
503 ASSERT_EQ(buffer[2], 0x9);
516 ASSERT_EQ(result, buffer + 3);
517 ASSERT_EQ(buffer[0], '\xd4');
518 ASSERT_EQ(buffer[1], '\xb6');
519 ASSERT_EQ(buffer[2], '\x09');