[Groonga-commit] groonga/gcs [master] Update tests for creating text field

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 18:11:30 JST


SHIMODA Hiroshi	2012-08-09 18:11:30 +0900 (Thu, 09 Aug 2012)

  New Revision: fbadedffcb8bd24bbbd4f74eaec2cfbc1e53f58d
  https://github.com/groonga/gcs/commit/fbadedffcb8bd24bbbd4f74eaec2cfbc1e53f58d

  Log:
    Update tests for creating text field

  Modified files:
    test/gcs-commands.test.js

  Modified: test/gcs-commands.test.js (+5 -5)
===================================================================
--- test/gcs-commands.test.js    2012-08-09 18:06:51 +0900 (d5c6c10)
+++ test/gcs-commands.test.js    2012-08-09 18:11:30 +0900 (86762d2)
@@ -268,7 +268,7 @@ suite('gcs-configure-fields', function() {
   setup(commonSetup);
   teardown(commonTeardown);
 
-  function testCreateField(done, name, type) {
+  function testCreateField(done, name, type, options) {
     new Domain('companies', context).createSync();
     utils
       .run('gcs-create-domain',
@@ -284,7 +284,7 @@ suite('gcs-configure-fields', function() {
                            message: result.output.stdout },
                          { code:    0,
                            message: 'Updated 1 Index Field:\n' +
-                                    name + ' Active ' + type + ' ()\n' },
+                                    name + ' Active ' + type + ' (' + options + ')\n' },
                          result.output.stderr);
 
         context.reopen();
@@ -301,13 +301,13 @@ suite('gcs-configure-fields', function() {
   }
 
   test('create text field', function(done) {
-    testCreateField(done, 'name', 'text');
+    testCreateField(done, 'name', 'text', 'Search Facet Result');
   });
   test('create uint field', function(done) {
-    testCreateField(done, 'age', 'uint');
+    testCreateField(done, 'age', 'uint', 'Search Result');
   });
   test('create literal field', function(done) {
-    testCreateField(done, 'product', 'literal');
+    testCreateField(done, 'product', 'literal', 'Search Facet Result');
   });
 
   function testDeleteField(done, name, type) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index