[Groonga-commit] groonga/groonga at 8212a02 [master] test: follow dump format change

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 3 16:45:43 JST 2015


Kouhei Sutou	2015-04-03 16:45:43 +0900 (Fri, 03 Apr 2015)

  New Revision: 8212a02122cfbb88334229ff4f9f22ee07c5db98
  https://github.com/groonga/groonga/commit/8212a02122cfbb88334229ff4f9f22ee07c5db98

  Message:
    test: follow dump format change

  Modified files:
    test/unit/core/test-command-column-rename.c
    test/unit/core/test-command-dump.c
    test/unit/core/test-command-table-rename.c

  Modified: test/unit/core/test-command-column-rename.c (+1 -0)
===================================================================
--- test/unit/core/test-command-column-rename.c    2015-04-03 16:45:18 +0900 (78f174a)
+++ test/unit/core/test-command-column-rename.c    2015-04-03 16:45:43 +0900 (572678c)
@@ -104,6 +104,7 @@ test_success(void)
   cut_assert_equal_string(
       "table_create Users TABLE_HASH_KEY ShortText\n"
       "column_create Users full_name COLUMN_SCALAR ShortText\n"
+      "\n"
       "load --table Users\n"
       "[\n"
       "[\"_key\",\"full_name\"],\n"

  Modified: test/unit/core/test-command-dump.c (+16 -0)
===================================================================
--- test/unit/core/test-command-dump.c    2015-04-03 16:45:18 +0900 (a299887)
+++ test/unit/core/test-command-dump.c    2015-04-03 16:45:43 +0900 (93958b7)
@@ -382,6 +382,7 @@ test_uvector_column(gconstpointer data)
 
   expected = cut_take_printf("table_create Table TABLE_NO_KEY\n"
                              "column_create Table Column COLUMN_VECTOR %s\n"
+                             "\n"
                              "load --table Table\n"
                              "[\n"
                              "[\"_id\",\"Column\"],\n"
@@ -429,6 +430,7 @@ test_vector_column(gconstpointer data)
 
   expected = cut_take_printf("table_create Table TABLE_NO_KEY\n"
                              "column_create Table Column COLUMN_VECTOR %s\n"
+                             "\n"
                              "load --table Table\n"
                              "[\n"
                              "[\"_id\",\"Column\"],\n"
@@ -461,6 +463,7 @@ test_unsequantial_records_in_table_with_keys(void)
   grn_table_delete_by_id(context, table, 6);
 
   cut_assert_equal_string("table_create Weekdays TABLE_HASH_KEY ShortText\n"
+                          "\n"
                           "load --table Weekdays\n"
                           "[\n"
                           "[\"_key\"],\n"
@@ -495,13 +498,17 @@ test_nil_reference(void)
                  "]"));
 
   cut_assert_equal_string("table_create Users TABLE_HASH_KEY ShortText\n"
+                          "\n"
                           "table_create Initials TABLE_PAT_KEY ShortText\n"
+                          "\n"
                           "column_create Users initial COLUMN_SCALAR Initials\n"
+                          "\n"
                           "load --table Users\n"
                           "[\n"
                           "[\"_key\",\"initial\"],\n"
                           "[\"mori\",\"\"]\n"
                           "]\n"
+                          "\n"
                           "load --table Initials\n"
                           "[\n"
                           "[\"_key\"],\n"
@@ -517,15 +524,19 @@ test_load_with_vector_int32_reference_key(void)
   const gchar *commands =
     "table_create users TABLE_HASH_KEY Int32\n"
     "column_create users name COLUMN_SCALAR ShortText\n"
+    "\n"
     "table_create comments TABLE_PAT_KEY ShortText\n"
     "column_create comments text COLUMN_SCALAR ShortText\n"
+    "\n"
     "column_create comments author COLUMN_VECTOR users\n"
+    "\n"
     "load --table users\n"
     "[\n"
     "[\"_key\",\"name\"],\n"
     "[1000,\"ryoqun\"],\n"
     "[1001,\"hayamiz\"]\n"
     "]\n"
+    "\n"
     "load --table comments\n"
     "[\n"
     "[\"_key\",\"author\",\"text\"],\n"
@@ -542,10 +553,13 @@ test_tables_argument(void)
   const gchar *define_schema_commands =
     "table_create users TABLE_HASH_KEY Int32\n"
     "column_create users name COLUMN_SCALAR ShortText\n"
+    "\n"
     "table_create comments TABLE_PAT_KEY ShortText\n"
     "column_create comments text COLUMN_SCALAR ShortText\n"
+    "\n"
     "table_create sites TABLE_NO_KEY\n"
     "column_create sites url COLUMN_SCALAR ShortText\n"
+    "\n"
     "column_create comments author COLUMN_VECTOR users";
   const gchar *load_users_commands =
     "load --table users\n"
@@ -573,7 +587,9 @@ test_tables_argument(void)
   assert_send_commands(load_comments_commands);
   assert_send_commands(load_sites_commands);
   cut_assert_equal_string(cut_take_printf("%s\n"
+                                          "\n"
                                           "%s\n"
+                                          "\n"
                                           "%s",
                                           define_schema_commands,
                                           load_users_commands,

  Modified: test/unit/core/test-command-table-rename.c (+1 -0)
===================================================================
--- test/unit/core/test-command-table-rename.c    2015-04-03 16:45:18 +0900 (83eebfd)
+++ test/unit/core/test-command-table-rename.c    2015-04-03 16:45:43 +0900 (dca6633)
@@ -102,6 +102,7 @@ test_success(void)
   cut_assert_equal_string(
       "table_create People TABLE_HASH_KEY ShortText\n"
       "column_create People name COLUMN_SCALAR ShortText\n"
+      "\n"
       "load --table People\n"
       "[\n"
       "[\"_key\",\"name\"],\n"
-------------- next part --------------
HTML����������������������������...
下載 



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