Lines Matching defs:got
22 const std::string &expect, const std::string &got) {
24 want.resize(got.size(), ' ');
25 return want == got;
29 const char *expect, const std::string &&got) {
30 return CompareFormattedStrings(std::string(expect), std::move(got));
35 const char *format, double x, const char *expect, std::string &got) {
42 got = std::string{buffer, sizeof buffer};
43 auto lastNonBlank{got.find_last_not_of(" ")};
45 got.resize(lastNonBlank + 1);
47 return CompareFormattedStrings(expect, got);
52 const char *expect, std::string &got) {
57 return CompareFormatReal(format, x, expect, got);
61 const char *format, std::int64_t x, const char *expect, std::string &got) {
68 got = std::string{buffer, sizeof buffer};
69 auto lastNonBlank{got.find_last_not_of(" ")};
71 got.resize(lastNonBlank + 1);
73 return CompareFormattedStrings(expect, got);
102 << "Expected '" << expect << "', got " << buffer;
166 << "Expected '" << expect << "' but got '"
213 << "', but got '" << output << "'";
250 << "descrOutputTest: formatted: got '"
266 << "descrOutputTest: list-directed: got '"
299 std::string got;
300 ASSERT_TRUE(CompareFormatReal(format, 0.0, expect, got))
302 << "', got '" << got << "'";
332 std::string got;
333 ASSERT_TRUE(CompareFormatReal(format, 1.0, expect, got))
335 << "', got '" << got << "'";
348 std::string got;
349 ASSERT_TRUE(CompareFormatReal(format, -1.0, expect, got))
351 << "', got '" << got << "'";
700 std::string got;
701 ASSERT_TRUE(CompareFormatReal(format, value, expect, got))
703 << "', got '" << got << "'";
761 std::string got;
765 ASSERT_TRUE(CompareFormatReal(format, value, expect, got))
767 << format << ", expected '" << expect << "', got '" << got << "'";
783 std::string got;
784 ASSERT_TRUE(CompareFormatReal("(EN10.1)", value, expect, got))
785 << "Failed to format EN10.1, expected '" << expect << "', got '" << got
848 std::string got;
849 ASSERT_TRUE(CompareFormatInteger(fmt, value, expect, got))
850 << "Failed to format " << fmt << ", expected '" << expect << "', got '"
851 << got << "'";
960 << "', want " << want << ", got " << u.raw;
976 std::string got{std::string{buffer, sizeof buffer}};
977 EXPECT_TRUE(CompareFormattedStrings(" 65504. ", got))
978 << "expected ' 65504. ', got '" << got << '\''; // not 65500.!