Lines Matching defs:correct
96 const T value, const Optional opt_arg, const optional<int> opt_precision, const string_view correct) {
98 // Important: Test every effective buffer size from 0 through correct.size() and slightly beyond. For the sizes
99 // less than correct.size(), this verifies that the too-small buffer is correctly detected, and that we don't
102 // a single check, but sometimes we need to check when writing each part of the result.) Testing correct.size()
126 for (std::size_t n = 0; n <= correct.size() + ExtraChars; ++n) {
148 if (n < correct.size()) {
155 assert(result.ptr == first + correct.size());
158 assert(equal(first, result.ptr, correct.begin(), correct.end()));
165 void test_integer_to_chars(const T value, const optional<int> opt_base, const string_view correct) {
167 test_common_to_chars(value, opt_base, nullopt, correct);
170 const char* const correct_first = correct.data();
171 const char* const correct_last = correct_first + correct.size();
949 const T value, const optional<chars_format> opt_fmt, const optional<int> opt_precision, const string_view correct) {
951 test_common_to_chars(value, opt_fmt, opt_precision, correct);
1000 test_floating_to_chars(t.value, nullopt, nullopt, t.correct);
1002 test_floating_to_chars(t.value, t.fmt, nullopt, t.correct);
1009 test_floating_to_chars(t.value, nullopt, nullopt, t.correct);
1011 test_floating_to_chars(t.value, t.fmt, nullopt, t.correct);
1017 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1020 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1023 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1026 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1029 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1032 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1035 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1038 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1041 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1044 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1047 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1050 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1053 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);
1056 test_floating_to_chars(t.value, t.fmt, t.precision, t.correct);