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

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jul 3 21:17:04 JST 2014


Kouhei Sutou	2014-07-03 21:17:04 +0900 (Thu, 03 Jul 2014)

  New Revision: 1505f419922176342df7f3682df01fe557045750
  https://github.com/ranguba/rroonga/commit/1505f419922176342df7f3682df01fe557045750

  Message:
    test: indent

  Modified files:
    test/test-variable-size-column.rb

  Modified: test/test-variable-size-column.rb (+72 -72)
===================================================================
--- test/test-variable-size-column.rb    2014-07-03 21:15:35 +0900 (38ba1c1)
+++ test/test-variable-size-column.rb    2014-07-03 21:17:04 +0900 (55f3b2e)
@@ -239,83 +239,83 @@ class VariableSizeColumnTest < Test::Unit::TestCase
 
     class WeightTest < self
       class TypeTest < self
-      def setup_schema
-        Groonga::Schema.define do |schema|
-          schema.create_table("Products",
-                              :type => :patricia_trie,
-                              :key_type => :short_text) do |table|
-            table.short_text("tags",
-                             :type => :vector,
-                             :with_weight => true)
+        def setup_schema
+          Groonga::Schema.define do |schema|
+            schema.create_table("Products",
+                                :type => :patricia_trie,
+                                :key_type => :short_text) do |table|
+              table.short_text("tags",
+                               :type => :vector,
+                               :with_weight => true)
+            end
           end
-        end
-
-        @products = Groonga["Products"]
-      end
-
-      def test_string_key
-        groonga =****@produ*****("Groonga")
-        groonga.tags = [
-          {
-            "value"  => "groonga",
-            "weight" => 100,
-          },
-        ]
-
-        assert_equal([
-                       {
-                         :value  => "groonga",
-                         :weight => 100,
-                       },
-                     ],
-                     groonga.tags)
-      end
 
-      def test_array
-        groonga =****@produ*****("Groonga")
-        groonga.tags = [
-          {
-            :value  => "groonga",
-            :weight => 100,
-          },
-          {
-            :value  => "full text search",
-            :weight => 1000,
-          },
-        ]
+          @products = Groonga["Products"]
+        end
 
-        assert_equal([
-                       {
-                         :value  => "groonga",
-                         :weight => 100,
-                       },
-                       {
-                         :value  => "full text search",
-                         :weight => 1000,
-                       },
-                     ],
-                     groonga.tags)
-      end
+        def test_string_key
+          groonga =****@produ*****("Groonga")
+          groonga.tags = [
+            {
+              "value"  => "groonga",
+              "weight" => 100,
+            },
+          ]
+
+          assert_equal([
+                         {
+                           :value  => "groonga",
+                           :weight => 100,
+                         },
+                       ],
+                       groonga.tags)
+        end
 
-      def test_hash
-        groonga =****@produ*****("Groonga")
-        groonga.tags = {
-          "groonga" => 100,
-          "full text search" => 1000,
-        }
+        def test_array
+          groonga =****@produ*****("Groonga")
+          groonga.tags = [
+            {
+              :value  => "groonga",
+              :weight => 100,
+            },
+            {
+              :value  => "full text search",
+              :weight => 1000,
+            },
+          ]
+
+          assert_equal([
+                         {
+                           :value  => "groonga",
+                           :weight => 100,
+                         },
+                         {
+                           :value  => "full text search",
+                           :weight => 1000,
+                         },
+                       ],
+                       groonga.tags)
+        end
 
-        assert_equal([
-                       {
-                         :value  => "groonga",
-                         :weight => 100,
-                       },
-                       {
-                         :value  => "full text search",
-                         :weight => 1000,
-                       },
-                     ],
-                     groonga.tags)
-      end
+        def test_hash
+          groonga =****@produ*****("Groonga")
+          groonga.tags = {
+            "groonga" => 100,
+            "full text search" => 1000,
+          }
+
+          assert_equal([
+                         {
+                           :value  => "groonga",
+                           :weight => 100,
+                         },
+                         {
+                           :value  => "full text search",
+                           :weight => 1000,
+                         },
+                       ],
+                       groonga.tags)
+        end
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
下載 



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