authorgravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-05-25 13:43:52+02:00
committergravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-05-25 13:43:52+02:00
logc89b5222337d6adc14c83b8fa20a139196c4a38b
treef15ba38b58ae8885af13befb50586f43b29d28a7
parentb660134a18a308a3a4378c98b78b84595da34e7e

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


1 files changed, 3 insertions(+), 3 deletions(-)

test/tests.zig+3-3
...@@ -343,7 +343,7 @@ pub const CompareOutputContext = struct {...@@ -343,7 +343,7 @@ pub const CompareOutputContext = struct {
343 \\343 \\
344 \\========= Expected this output: =========344 \\========= Expected this output: =========
345 \\{}345 \\{}
346 \\================================================346 \\========= But found: ====================
347 \\{}347 \\{}
348 \\348 \\
349 , self.expected_output, stdout.toSliceConst());349 , self.expected_output, stdout.toSliceConst());
...@@ -1038,7 +1038,7 @@ pub const TranslateCContext = struct {...@@ -1038,7 +1038,7 @@ pub const TranslateCContext = struct {
1038 \\1038 \\
1039 \\========= Expected this output: ================1039 \\========= Expected this output: ================
1040 \\{}1040 \\{}
1041 \\================================================1041 \\========= But found: ===========================
1042 \\{}1042 \\{}
1043 \\1043 \\
1044 , expected_line, stdout);1044 , expected_line, stdout);
...@@ -1213,7 +1213,7 @@ pub const GenHContext = struct {...@@ -1213,7 +1213,7 @@ pub const GenHContext = struct {
1213 \\1213 \\
1214 \\========= Expected this output: ================1214 \\========= Expected this output: ================
1215 \\{}1215 \\{}
1216 \\================================================1216 \\========= But found: ===========================
1217 \\{}1217 \\{}
1218 \\1218 \\
1219 , expected_line, actual_h);1219 , expected_line, actual_h);