[Groonga-commit] groonga/grntest at e0d2c54 [master] Revert "Invert expected and actual order"

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 5 16:09:15 JST 2016


Kouhei Sutou	2016-02-05 16:09:15 +0900 (Fri, 05 Feb 2016)

  New Revision: e0d2c54b107622a8034358822da001c330e75a34
  https://github.com/groonga/grntest/commit/e0d2c54b107622a8034358822da001c330e75a34

  Message:
    Revert "Invert expected and actual order"
    
    This reverts commit 581bc77fbbeab8a50cbdf48ac66014b74c3d049b.
    
    It was not straightforward...

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

  Modified: lib/grntest/reporters/base-reporter.rb (+4 -6)
===================================================================
--- lib/grntest/reporters/base-reporter.rb    2016-02-04 11:55:51 +0900 (85c3d0f)
+++ lib/grntest/reporters/base-reporter.rb    2016-02-05 16:09:15 +0900 (8faa3d3)
@@ -93,13 +93,11 @@ module Grntest
       end
 
       def report_diff(expected, actual)
-        create_temporary_file("actual", actual) do |actual_file|
-          create_temporary_file("expected", expected) do |expected_file|
+        create_temporary_file("expected", expected) do |expected_file|
+          create_temporary_file("actual", actual) do |actual_file|
             diff_options =****@teste*****_options.dup
-            diff_options.concat([
-                                  "--label", "(actual)", actual_file.path,
-                                  "--label", "(expected)", expected_file.path,
-                                ])
+            diff_options.concat(["--label", "(expected)", expected_file.path,
+                                 "--label", "(actual)", actual_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