[Groonga-commit] ranguba/groonga-client at 406b762 [master] index-check: add a test for non string case

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 30 17:50:43 JST 2017


Kouhei Sutou	2017-10-30 17:50:43 +0900 (Mon, 30 Oct 2017)

  New Revision: 406b762cf104c37030380df6464caa13710691a4
  https://github.com/ranguba/groonga-client/commit/406b762cf104c37030380df6464caa13710691a4

  Message:
    index-check: add a test for non string case

  Modified files:
    test/command-line/test-index-check.rb

  Modified: test/command-line/test-index-check.rb (+24 -1)
===================================================================
--- test/command-line/test-index-check.rb    2017-10-30 17:48:22 +0900 (6062f9e)
+++ test/command-line/test-index-check.rb    2017-10-30 17:50:43 +0900 (fd9dcc6)
@@ -242,7 +242,7 @@ delete Terms --key groonga
                    index_check("--method=content"))
     end
 
-    def test_broken_multiple_column
+    def test_multiple_column
       restore(<<-COMMANDS)
 table_create Memos TABLE_HASH_KEY ShortText
 column_create Memos content COLUMN_SCALAR Text
@@ -265,5 +265,28 @@ delete Terms --key is
       assert_equal([false, "", "Broken: Terms.memos: <is>\n"],
                    index_check("--method=content"))
     end
+
+    def test_number
+      restore(<<-COMMANDS)
+table_create Memos TABLE_HASH_KEY ShortText
+column_create Memos score COLUMN_SCALAR Int32
+
+table_create Scores TABLE_PAT_KEY Int32
+column_create Scores memos_score \
+  COLUMN_INDEX \
+  Memos score
+
+load --table Memos
+[
+{"_key": "groonga", "score": 10},
+{"_key": "mroonga", "score": 9}
+]
+
+delete Scores --key 9
+      COMMANDS
+
+      assert_equal([false, "", "Broken: Scores.memos_score: <9>\n"],
+                   index_check("--method=content"))
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171030/7b3bdfbd/attachment.htm 



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