[Groonga-commit] groonga/groonga-query-log at 2f28cfd [master] test: fold long lines

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 12 17:20:00 JST 2018


Kouhei Sutou	2018-06-12 17:20:00 +0900 (Tue, 12 Jun 2018)

  New Revision: 2f28cfdf9b158a9044454ce2aa07b2683077b051
  https://github.com/groonga/groonga-query-log/commit/2f28cfdf9b158a9044454ce2aa07b2683077b051

  Message:
    test: fold long lines

  Modified files:
    test/test-response-comparer.rb

  Modified: test/test-response-comparer.rb (+17 -3)
===================================================================
--- test/test-response-comparer.rb    2018-06-12 17:17:28 +0900 (fdf03e6)
+++ test/test-response-comparer.rb    2018-06-12 17:20:00 +0900 (36004bf)
@@ -308,9 +308,23 @@ class ResponseComparerTest < Test::Unit::TestCase
 
     class CareDifferencesInAccuracyOfPosition < self
       def test_different_accurancy_of_postion
-        assert_true(same?([[[1], [["_id", "UInt32"], ["location", "float"]], [1, 139.763570507358]]],
-                          [[[1], [["_id", "UInt32"], ["location", "float"]], [1, 139.7635705073576]]],
-                          :care_order => false))
+        response1 = [
+          [
+            [1],
+            [["_id", "UInt32"], ["location", "float"]],
+            [1, 139.763570507358],
+          ]
+        ]
+        response2 = [
+          [
+            [1],
+            [["_id", "UInt32"], ["location", "float"]],
+            [1, 139.7635705073576],
+          ],
+        ]
+        assert do
+          same?(response1, response2, :care_order => false)
+        end
       end
     end
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180612/917baae1/attachment-0001.htm 



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