Lines Matching full:results
15 using Results = std::vector<std::string>; typedef
29 void Check(Results &);
30 Results results; member in TestFormatContext
39 results.push_back("'"s + str + '\''); in Emit()
53 results.emplace_back("/"); in AdvanceRecord()
59 results.push_back("T"s + std::to_string(n)); in HandleAbsolutePosition()
64 results.push_back("TL"s + std::to_string(-n)); in HandleRelativePosition()
66 results.push_back(std::to_string(n) + 'X'); in HandleRelativePosition()
88 results.push_back(str); in Report()
91 void TestFormatContext::Check(Results &expect) { in Check()
92 if (expect != results) { in Check()
98 for (const std::string &s : results) { in Check()
104 results.clear(); in Check()
107 static void Test(int n, const char *format, Results &&expect, int repeat = 1) { in Test()
120 context.results.push_back("Crash:"s + crash); in Test()
127 Test(1, "('PI=',F9.7)", Results{"'PI='", "F9.7"}); in main()
128 Test(1, "(3HPI=F9.7)", Results{"'PI='", "F9.7"}); in main()
129 Test(1, "(3HPI=/F9.7)", Results{"'PI='", "/", "F9.7"}); in main()
130 Test(2, "('PI=',F9.7)", Results{"'PI='", "F9.7", "/", "'PI='", "F9.7"}); in main()
132 Results{"'PI='", "F9.7", "'PI='", "F9.7", "'done'"}); in main()
134 Results{"'PI='", "F9.7", "'PI='", "F9.7"}); in main()
136 Results{"'PI='", "F9.7", "'PI='", "F9.7"}); in main()
137 Test(1, "(3F9.7)", Results{"2*F9.7"}, 2); in main()