Lines Matching refs:check
54 static void check(const char* expected, T value) {
62 check<bool>("0 0", false);
63 check<bool>("1 1", true);
65 check<int16_t>("-12345 cfc7", -12345);
66 check<int16_t>("-32768 8000", std::numeric_limits<int16_t>::min());
67 check<int16_t>("32767 7fff", std::numeric_limits<int16_t>::max());
69 check<uint16_t>("34567 8707", 34567);
70 check<uint16_t>("0 0", std::numeric_limits<uint16_t>::min());
71 check<uint16_t>("65535 ffff", std::numeric_limits<uint16_t>::max());
73 check<int32_t>("-1234567 ffed2979", -1234567);
74 check<int32_t>("-2147483648 80000000", std::numeric_limits<int32_t>::min());
75 check<int32_t>("2147483647 7fffffff", std::numeric_limits<int32_t>::max());
77 check<uint32_t>("3456789 34bf15", 3456789);
78 check<uint32_t>("0 0", std::numeric_limits<uint32_t>::min());
79 check<uint32_t>("4294967295 ffffffff", std::numeric_limits<uint32_t>::max());
81 check<int64_t>("-1234567 ffffffffffed2979", -1234567);
82 check<int64_t>("-9223372036854775808 8000000000000000",
84 check<int64_t>("9223372036854775807 7fffffffffffffff",
87 check<uint64_t>("3456789 34bf15", 3456789);
88 check<uint64_t>("0 0", std::numeric_limits<uint64_t>::min());
89 check<uint64_t>("18446744073709551615 ffffffffffffffff",
92 check<float>("0 0", 0.0f);
93 check<float>("123 123", 123.0f);
94 check<float>("-0.5 -0.5", -0.5f);
95 check<float>("1.25 1.25", 1.25f);
96 check<float>("0.0625 0.0625", 6.25e-2f);
98 check<double>("0 0", 0.0);
99 check<double>("123 123", 123.0);
100 check<double>("-0.5 -0.5", -0.5);
101 check<double>("1.25 1.25", 1.25);
102 check<double>("0.0625 0.0625", 6.25e-2);
107 check<char>("a a", 'a');
108 check<signed char>("B B", 'B');
109 check<unsigned char>("9 9", '9');
110 check<const char*>("bye bye", "bye");