[Groonga-commit] groonga/groonga-command at 44e76bc [fix-travis-ci-error] test table_create: indent

Back to archive index

Kosuke Asami null+****@clear*****
Wed Jan 13 17:20:34 JST 2016


Kosuke Asami	2013-07-11 15:57:59 +0900 (Thu, 11 Jul 2013)

  New Revision: 44e76bcf85f7a30ab7f7ecc5398bf2bf5c4763da
  https://github.com/groonga/groonga-command/commit/44e76bcf85f7a30ab7f7ecc5398bf2bf5c4763da

  Message:
    test table_create: indent

  Modified files:
    test/command/test-table-create.rb

  Modified: test/command/test-table-create.rb (+70 -70)
===================================================================
--- test/command/test-table-create.rb    2013-07-11 15:57:37 +0900 (bd80259)
+++ test/command/test-table-create.rb    2013-07-11 15:57:59 +0900 (bc76938)
@@ -63,80 +63,80 @@ class TableCreateCommandTest < Test::Unit::TestCase
       end
 
       class PredicateTest < self
-          data({
-              "TABLE_NO_KEY" => {
-                :expected => true,
-                :flags    => "TABLE_NO_KEY",
-              },
-              "other flag"   => {
-                :expected => false,
-                :flags    => "TABLE_HASH_KEY",
-              }
-            })
-          def test_table_no_key?(data)
-            command = parse({"flags" => data[:flags]})
-            assert_equal(data[:expected], command.table_no_key?)
-          end
+        data({
+            "TABLE_NO_KEY" => {
+              :expected => true,
+              :flags    => "TABLE_NO_KEY",
+            },
+            "other flag"   => {
+              :expected => false,
+              :flags    => "TABLE_HASH_KEY",
+            }
+          })
+        def test_table_no_key?(data)
+          command = parse({"flags" => data[:flags]})
+          assert_equal(data[:expected], command.table_no_key?)
+        end
 
-          data({
-              "TABLE_HASH_KEY" => {
-                :expected => true,
-                :flags    => "TABLE_HASH_KEY",
-              },
-              "other flag"   => {
-                :expected => false,
-                :flags    => "TABLE_PAT_KEY",
-              }
-            })
-          def test_table_hash_key?(data)
-            command = parse({"flags" => data[:flags]})
-            assert_equal(data[:expected], command.table_hash_key?)
-          end
+        data({
+            "TABLE_HASH_KEY" => {
+              :expected => true,
+              :flags    => "TABLE_HASH_KEY",
+            },
+            "other flag"   => {
+              :expected => false,
+              :flags    => "TABLE_PAT_KEY",
+            }
+          })
+        def test_table_hash_key?(data)
+          command = parse({"flags" => data[:flags]})
+          assert_equal(data[:expected], command.table_hash_key?)
+        end
 
-          data({
-              "TABLE_PAT_KEY" => {
-                :expected => true,
-                :flags    => "TABLE_PAT_KEY",
-              },
-              "other flag"   => {
-                :expected => false,
-                :flags    => "TABLE_DAT_KEY",
-              }
-            })
-          def test_table_pat_key?(data)
-            command = parse({"flags" => data[:flags]})
-            assert_equal(data[:expected], command.table_pat_key?)
-          end
+        data({
+            "TABLE_PAT_KEY" => {
+              :expected => true,
+              :flags    => "TABLE_PAT_KEY",
+            },
+            "other flag"   => {
+              :expected => false,
+              :flags    => "TABLE_DAT_KEY",
+            }
+          })
+        def test_table_pat_key?(data)
+          command = parse({"flags" => data[:flags]})
+          assert_equal(data[:expected], command.table_pat_key?)
+        end
 
-          data({
-              "TABLE_DAT_KEY" => {
-                :expected => true,
-                :flags    => "TABLE_DAT_KEY",
-              },
-              "other flag"   => {
-                :expected => false,
-                :flags    => "TABLE_NO_KEY",
-              }
-            })
-          def test_table_dat_key?(data)
-            command = parse({"flags" => data[:flags]})
-            assert_equal(data[:expected], command.table_dat_key?)
-          end
+        data({
+            "TABLE_DAT_KEY" => {
+              :expected => true,
+              :flags    => "TABLE_DAT_KEY",
+            },
+            "other flag"   => {
+              :expected => false,
+              :flags    => "TABLE_NO_KEY",
+            }
+          })
+        def test_table_dat_key?(data)
+          command = parse({"flags" => data[:flags]})
+          assert_equal(data[:expected], command.table_dat_key?)
+        end
 
-          data({
-              "TABLE_DAT_KEY" => {
-                :expected => true,
-                :flags    => "KEY_WITH_SIS|TABLE_PAT_KEY",
-              },
-              "other flag"   => {
-                :expected => false,
-                :flags    => "TABLE_NO_KEY",
-              }
-            })
-          def test_key_with_sis?(data)
-            command = parse({"flags" => data[:flags]})
-            assert_equal(data[:expected], command.key_with_sis?)
-          end
+        data({
+            "TABLE_DAT_KEY" => {
+              :expected => true,
+              :flags    => "KEY_WITH_SIS|TABLE_PAT_KEY",
+            },
+            "other flag"   => {
+              :expected => false,
+              :flags    => "TABLE_NO_KEY",
+            }
+          })
+        def test_key_with_sis?(data)
+          command = parse({"flags" => data[:flags]})
+          assert_equal(data[:expected], command.key_with_sis?)
+        end
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
Descargar 



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