[Groonga-commit] ranguba/rroonga at 85d9ffe [master] test: indent

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 7 17:52:47 JST 2017


Kouhei Sutou	2017-02-07 17:52:47 +0900 (Tue, 07 Feb 2017)

  New Revision: 85d9ffe0b3304bf9a722f2deb4339708d4e6456e
  https://github.com/ranguba/rroonga/commit/85d9ffe0b3304bf9a722f2deb4339708d4e6456e

  Message:
    test: indent

  Modified files:
    test/test-index-cursor.rb

  Modified: test/test-index-cursor.rb (+12 -12)
===================================================================
--- test/test-index-cursor.rb    2017-02-07 17:52:12 +0900 (f6caec2)
+++ test/test-index-cursor.rb    2017-02-07 17:52:47 +0900 (97e3229)
@@ -23,21 +23,21 @@ class IndexCursorTest < Test::Unit::TestCase
   end
 
   sub_test_case("#open_cursor") do
-  def test_table_cursor
-    postings = []
-    @terms.open_cursor do |table_cursor|
-      index_cursor = nil
-      @content_index.open_cursor(table_cursor) do |cursor|
-        cursor.each do |posting|
-          postings << posting.to_hash
+    def test_table_cursor
+      postings = []
+      @terms.open_cursor do |table_cursor|
+        index_cursor = nil
+        @content_index.open_cursor(table_cursor) do |cursor|
+          cursor.each do |posting|
+            postings << posting.to_hash
+          end
+          index_cursor = cursor
         end
-        index_cursor = cursor
+        assert_predicate(index_cursor, :closed?)
       end
-      assert_predicate(index_cursor, :closed?)
-    end
 
-    assert_equal(expected_postings, postings)
-  end
+      assert_equal(expected_postings, postings)
+    end
   end
 
   def test_enumerable
-------------- next part --------------
HTML����������������������������...
Télécharger 



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