Commit c89b522233

Sahnvour <sahnvour@pm.me>
2019-05-25 13:43:52
test: slightly better output for failure of tests based on text comparison
1 parent b660134
Changed files (1)
test/tests.zig
@@ -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);