[Groonga-commit] droonga/grn2drn at c1b9c17 [master] test load: split multi records case

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 9 10:22:51 JST 2014


Kouhei Sutou	2014-02-09 10:22:51 +0900 (Sun, 09 Feb 2014)

  New Revision: c1b9c17ad9e4f3237025cd53155cfe7086e8ea3d
  https://github.com/droonga/grn2drn/commit/c1b9c17ad9e4f3237025cd53155cfe7086e8ea3d

  Message:
    test load: split multi records case

  Modified files:
    test/test-converter.rb

  Modified: test/test-converter.rb (+27 -0)
===================================================================
--- test/test-converter.rb    2014-02-09 10:21:41 +0900 (80934f3)
+++ test/test-converter.rb    2014-02-09 10:22:51 +0900 (5d2e7a7)
@@ -108,6 +108,33 @@ column_create Terms Users_name COLUMN_INDEX|WITH_POSITION Users name
 load --table Users
 [
 ["_key","name"],
+["user","Abe Shinzo"]
+]
+      COMMAND
+      assert_equal([
+                     {
+                       :id => "test:0",
+                       :date => formatted_date,
+                       :replyTo => reply_to,
+                       :dataset => dataset,
+                       :type => "add",
+                       :body => {
+                         :table => "Users",
+                         :key => "user",
+                         :values => {
+                           :name => "Abe Shinzo",
+                         },
+                       },
+                     },
+                   ],
+                   convert(command))
+    end
+
+    def test_multi_records
+      command = <<-COMMAND.chomp
+load --table Users
+[
+["_key","name"],
 ["user0","Abe Shinzo"],
 ["user1","Noda Yoshihiko"],
 ["user2","Kan Naoto"]
-------------- next part --------------
HTML����������������������������...
Download 



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