Lines Matching refs:u
77 uint64_t u; in main() local
81 TEST((s = S("\x00"), pb_decode_varint(&s, &u) && u == 0)); in main()
82 TEST((s = S("\x01"), pb_decode_varint(&s, &u) && u == 1)); in main()
83 TEST((s = S("\xAC\x02"), pb_decode_varint(&s, &u) && u == 300)); in main()
84 TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint(&s, &u) && u == UINT32_MAX)); in main()
89 pb_decode_varint(&s, &u) && u == UINT64_MAX)); in main()
91 !pb_decode_varint(&s, &u))); in main()
96 uint32_t u; in main() local
99 TEST((s = S("\x00"), pb_decode_varint32(&s, &u) && u == 0)); in main()
100 TEST((s = S("\x01"), pb_decode_varint32(&s, &u) && u == 1)); in main()
101 TEST((s = S("\xAC\x02"), pb_decode_varint32(&s, &u) && u == 300)); in main()
102 TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint32(&s, &u) && u == UINT32_MAX)); in main()
103 TEST((s = S("\xFF\xFF\xFF\xFF\x8F\x00"), pb_decode_varint32(&s, &u) && u == UINT32_MAX)); in main()
104 TEST((s = S("\xFF\xFF\xFF\xFF\x10"), !pb_decode_varint32(&s, &u))); in main()
105 TEST((s = S("\xFF\xFF\xFF\xFF\x40"), !pb_decode_varint32(&s, &u))); in main()
106 TEST((s = S("\xFF\xFF\xFF\xFF\xFF\x01"), !pb_decode_varint32(&s, &u))); in main()
107 TEST((s = S("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x00"), !pb_decode_varint32(&s, &u))); in main()