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

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 14 16:41:35 JST 2015


Kouhei Sutou	2015-04-14 16:41:35 +0900 (Tue, 14 Apr 2015)

  New Revision: e2cd1c4479d3cfa415507203150f25ed711dd507
  https://github.com/ranguba/rroonga/commit/e2cd1c4479d3cfa415507203150f25ed711dd507

  Message:
    test: indent

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

  Modified: test/test-index-column.rb (+32 -32)
===================================================================
--- test/test-index-column.rb    2015-04-14 16:41:09 +0900 (8b5915b)
+++ test/test-index-column.rb    2015-04-14 16:41:35 +0900 (d2249df)
@@ -503,44 +503,44 @@ class IndexColumnTest < Test::Unit::TestCase
 
   class EstimateSizeTest < self
     sub_test_case "token ID" do
-    setup
-    def setup_schema
-      Groonga::Schema.define do |schema|
-        schema.create_table("Articles") do |table|
-          table.text("content")
-        end
+      setup
+      def setup_schema
+        Groonga::Schema.define do |schema|
+          schema.create_table("Articles") do |table|
+            table.text("content")
+          end
 
-        schema.create_table("Terms",
-                            :type => :hash,
-                            :key_type => "ShortText",
-                            :default_tokenizer => "TokenBigram",
-                            :normalizer => "NormalizerAuto") do |table|
-          table.index("Articles.content",
-                      :name => "articles_content",
-                      :with_position => true,
-                      :with_section => true)
+          schema.create_table("Terms",
+                              :type => :hash,
+                              :key_type => "ShortText",
+                              :default_tokenizer => "TokenBigram",
+                              :normalizer => "NormalizerAuto") do |table|
+            table.index("Articles.content",
+                        :name => "articles_content",
+                        :with_position => true,
+                        :with_section => true)
+          end
         end
-      end
 
-      @articles = Groonga["Articles"]
-      @terms = Groonga["Terms"]
-      @index = Groonga["Terms.articles_content"]
-    end
+        @articles = Groonga["Articles"]
+        @terms = Groonga["Terms"]
+        @index = Groonga["Terms.articles_content"]
+      end
 
-    setup
-    def setup_data
-      @articles.add(:content => "Groonga is fast")
-      @articles.add(:content => "Rroonga is fast")
-      @articles.add(:content => "Mroonga is fast")
-    end
+      setup
+      def setup_data
+        @articles.add(:content => "Groonga is fast")
+        @articles.add(:content => "Rroonga is fast")
+        @articles.add(:content => "Mroonga is fast")
+      end
 
-    def test_id
-      assert_equal(7, @index.estimate_size(@terms["fast"].id))
-    end
+      def test_id
+        assert_equal(7, @index.estimate_size(@terms["fast"].id))
+      end
 
-    def test_record
-      assert_equal(7, @index.estimate_size(@terms["fast"]))
-    end
+      def test_record
+        assert_equal(7, @index.estimate_size(@terms["fast"]))
+      end
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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