[Groonga-commit] groonga/groonga at 55b5dff [master] dump: add a test for the 7-th unnamed parameter (sort_hash_table)

Back to archive index

Susumu Yata null+****@clear*****
Mon Jul 31 12:33:16 JST 2017


Susumu Yata	2017-07-31 12:33:16 +0900 (Mon, 31 Jul 2017)

  New Revision: 55b5dff9136129bb54cd2424fcbfec90549646b9
  https://github.com/groonga/groonga/commit/55b5dff9136129bb54cd2424fcbfec90549646b9

  Message:
    dump: add a test for the 7-th unnamed parameter (sort_hash_table)

  Added files:
    test/command/suite/dump/record/sort_hash_table_unnamed.expected
    test/command/suite/dump/record/sort_hash_table_unnamed.test

  Added: test/command/suite/dump/record/sort_hash_table_unnamed.expected (+26 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/sort_hash_table_unnamed.expected    2017-07-31 12:33:16 +0900 (26f178a)
@@ -0,0 +1,26 @@
+table_create Users TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Users name COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+load --table Users
+[
+{"_key": "bob", "name": "Bob"},
+{"_key": "mallory", "name": "Mallory"},
+{"_key": "peggy", "name": "Peggy"},
+{"_key": "alice", "name": "Alice"},
+{"_key": "eve", "name": "Eve"}
+]
+[[0,0.0,0.0],5]
+dump Users yes yes yes yes yes yes
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users name COLUMN_SCALAR ShortText
+
+load --table Users
+[
+["_key","name"],
+["alice","Alice"],
+["bob","Bob"],
+["eve","Eve"],
+["mallory","Mallory"],
+["peggy","Peggy"]
+]

  Added: test/command/suite/dump/record/sort_hash_table_unnamed.test (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/sort_hash_table_unnamed.test    2017-07-31 12:33:16 +0900 (ac1c6d8)
@@ -0,0 +1,13 @@
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users name COLUMN_SCALAR ShortText
+
+load --table Users
+[
+{"_key": "bob", "name": "Bob"},
+{"_key": "mallory", "name": "Mallory"},
+{"_key": "peggy", "name": "Peggy"},
+{"_key": "alice", "name": "Alice"},
+{"_key": "eve", "name": "Eve"}
+]
+
+dump Users yes yes yes yes yes yes
-------------- next part --------------
HTML����������������������������...
下载 



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