[Groonga-commit] groonga/gcs [master] Update tests for added configuration tables

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Mon Aug 13 16:09:05 JST 2012


SHIMODA Hiroshi	2012-08-13 16:09:05 +0900 (Mon, 13 Aug 2012)

  New Revision: 098a03c93069a0715e28d60aa78b4cfbc2b3c4ea
  https://github.com/groonga/gcs/commit/098a03c93069a0715e28d60aa78b4cfbc2b3c4ea

  Log:
    Update tests for added configuration tables

  Modified files:
    test/database-domain.test.js
    test/database-index-field.test.js

  Modified: test/database-domain.test.js (+4 -0)
===================================================================
--- test/database-domain.test.js    2012-08-13 16:04:50 +0900 (57c1e8e)
+++ test/database-domain.test.js    2012-08-13 16:09:05 +0900 (a1ecbf7)
@@ -283,6 +283,10 @@ suite('database', function() {
             });
         var expectedDump = 'table_create ' + domain.tableName +  ' ' +
                              'TABLE_HASH_KEY ShortText\n' +
+                           'table_create ' + domain.configurationsTableName +  ' ' +
+                             'TABLE_HASH_KEY ShortText\n' +
+                           'column_create ' + domain.configurationsTableName +  ' ' +
+                             'value COLUMN_SCALAR ShortText\n' +
                            'table_create ' + domain.termsTableName +  ' ' +
                              'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                              '--default_tokenizer TokenBigram';

  Modified: test/database-index-field.test.js (+20 -0)
===================================================================
--- test/database-index-field.test.js    2012-08-13 16:04:50 +0900 (e4f5807)
+++ test/database-index-field.test.js    2012-08-13 16:09:05 +0900 (4760466)
@@ -212,6 +212,10 @@ suite('database', function() {
       function getNoColumnDump() {
         return 'table_create ' + domain.tableName +  ' ' +
                  'TABLE_HASH_KEY ShortText\n' +
+               'table_create ' + domain.configurationsTableName +  ' ' +
+                 'TABLE_HASH_KEY ShortText\n' +
+               'column_create ' + domain.configurationsTableName +  ' ' +
+                 'value COLUMN_SCALAR ShortText\n' +
                'table_create ' + domain.termsTableName + ' ' +
                  'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                  '--default_tokenizer TokenBigram';
@@ -235,6 +239,10 @@ suite('database', function() {
                          'TABLE_HASH_KEY ShortText\n' +
                        'column_create ' + domain.tableName + ' ' +
                          field.columnName + ' COLUMN_SCALAR ShortText\n' +
+                       'table_create ' + domain.configurationsTableName +  ' ' +
+                         'TABLE_HASH_KEY ShortText\n' +
+                       'column_create ' + domain.configurationsTableName +  ' ' +
+                         'value COLUMN_SCALAR ShortText\n' +
                        'table_create ' + domain.termsTableName + ' ' +
                          'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                          '--default_tokenizer TokenBigram\n' +
@@ -278,6 +286,10 @@ suite('database', function() {
                          'TABLE_HASH_KEY ShortText\n' +
                        'column_create ' + domain.tableName + ' ' +
                          field.columnName + ' COLUMN_SCALAR UInt32\n' +
+                       'table_create ' + domain.configurationsTableName +  ' ' +
+                         'TABLE_HASH_KEY ShortText\n' +
+                       'column_create ' + domain.configurationsTableName +  ' ' +
+                         'value COLUMN_SCALAR ShortText\n' +
                        'table_create ' + domain.termsTableName + ' ' +
                          'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                          '--default_tokenizer TokenBigram\n' +
@@ -321,6 +333,10 @@ suite('database', function() {
             });
         var expected = 'table_create ' + domain.tableName + ' ' +
                          'TABLE_HASH_KEY ShortText\n' +
+                       'table_create ' + domain.configurationsTableName +  ' ' +
+                         'TABLE_HASH_KEY ShortText\n' +
+                       'column_create ' + domain.configurationsTableName +  ' ' +
+                         'value COLUMN_SCALAR ShortText\n' +
                        'table_create ' + domain.termsTableName + ' ' +
                          'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                          '--default_tokenizer TokenBigram\n' +
@@ -383,6 +399,10 @@ suite('database', function() {
                          'TABLE_HASH_KEY ShortText\n' +
                        'column_create ' + domain.tableName + ' ' +
                          field.columnName + ' COLUMN_VECTOR ShortText\n' +
+                       'table_create ' + domain.configurationsTableName +  ' ' +
+                         'TABLE_HASH_KEY ShortText\n' +
+                       'column_create ' + domain.configurationsTableName +  ' ' +
+                         'value COLUMN_SCALAR ShortText\n' +
                        'table_create ' + domain.termsTableName + ' ' +
                          'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
                          '--default_tokenizer TokenBigram\n' +
-------------- next part --------------
HTML����������������������������...
Download 



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