[Groonga-commit] groonga/grntest at 581bc77 [master] Invert expected and actual order

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Feb 4 11:38:21 JST 2016


Kouhei Sutou	2016-02-04 11:38:21 +0900 (Thu, 04 Feb 2016)

  New Revision: 581bc77fbbeab8a50cbdf48ac66014b74c3d049b
  https://github.com/groonga/grntest/commit/581bc77fbbeab8a50cbdf48ac66014b74c3d049b

  Message:
    Invert expected and actual order
    
    We want to see difference from actual.

  Modified files:
    lib/grntest/reporters/base-reporter.rb

  Modified: lib/grntest/reporters/base-reporter.rb (+6 -4)
===================================================================
--- lib/grntest/reporters/base-reporter.rb    2015-11-24 17:16:04 +0900 (8faa3d3)
+++ lib/grntest/reporters/base-reporter.rb    2016-02-04 11:38:21 +0900 (85c3d0f)
@@ -93,11 +93,13 @@ module Grntest
       end
 
       def report_diff(expected, actual)
-        create_temporary_file("expected", expected) do |expected_file|
-          create_temporary_file("actual", actual) do |actual_file|
+        create_temporary_file("actual", actual) do |actual_file|
+          create_temporary_file("expected", expected) do |expected_file|
             diff_options =****@teste*****_options.dup
-            diff_options.concat(["--label", "(expected)", expected_file.path,
-                                 "--label", "(actual)", actual_file.path])
+            diff_options.concat([
+                                  "--label", "(actual)", actual_file.path,
+                                  "--label", "(expected)", expected_file.path,
+                                ])
             system(@tester.diff, *diff_options)
           end
         end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index