test: slightly better output for failure of tests based on text comparison

This commit is contained in:
Sahnvour 2019-05-25 13:43:52 +02:00
parent b660134a18
commit c89b522233

View File

@ -343,7 +343,7 @@ pub const CompareOutputContext = struct {
\\
\\========= Expected this output: =========
\\{}
\\================================================
\\========= But found: ====================
\\{}
\\
, self.expected_output, stdout.toSliceConst());
@ -1038,7 +1038,7 @@ pub const TranslateCContext = struct {
\\
\\========= Expected this output: ================
\\{}
\\================================================
\\========= But found: ===========================
\\{}
\\
, expected_line, stdout);
@ -1213,7 +1213,7 @@ pub const GenHContext = struct {
\\
\\========= Expected this output: ================
\\{}
\\================================================
\\========= But found: ===========================
\\{}
\\
, expected_line, actual_h);