[Groonga-commit] groonga/gcs [master] Update fixtures and tests around batches

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 11日 (水) 18:14:12 JST


SHIMODA Hiroshi	2012-07-11 18:14:12 +0900 (Wed, 11 Jul 2012)

  New Revision: 6d2b231865b7f2c3fae9ac584705b69ec192310f
  https://github.com/groonga/gcs/commit/6d2b231865b7f2c3fae9ac584705b69ec192310f

  Log:
    Update fixtures and tests around batches

  Modified files:
    test/batch-processor.test.js
    test/fixture/companies/data-deleted.grn
    test/fixture/companies/ddl.grn

  Modified: test/batch-processor.test.js (+2 -1)
===================================================================
--- test/batch-processor.test.js    2012-07-11 18:12:21 +0900 (12ac279)
+++ test/batch-processor.test.js    2012-07-11 18:14:12 +0900 (4d96044)
@@ -48,7 +48,8 @@ suite('batch/processor/Processor (instance methods)', function() {
 
   test('getColumns', function() {
     var columns = processor.getColumns();
-    var expected = ['name', 'address', 'email_address', 'description', 'age'];
+    var expected = ['name', 'address', 'email_address', 'description',
+                    'age', 'product'];
     assert.deepEqual(columns.sort(), expected.sort());
   });
 

  Modified: test/fixture/companies/data-deleted.grn (+1 -1)
===================================================================
--- test/fixture/companies/data-deleted.grn    2012-07-11 18:12:21 +0900 (8d16302)
+++ test/fixture/companies/data-deleted.grn    2012-07-11 18:14:12 +0900 (e9d9feb)
@@ -1,6 +1,6 @@
 load --table companies
 [
-["_key","address","age","description","email_address","name"],
+["_key","address","age","description","email_address","name","product"],
 ["id2","Sapporo, Hokkaido, Japan",2,"","info****@enish*****","Enishi Tech Inc.","groonga"],
 ["id3","Hongo, Tokyo, Japan",3,"","info****@clear*****","ClearCode Inc.","groonga"],
 ["id4","Granada, Moon",4,"","","Anaheim Electronics","gundam"],

  Modified: test/fixture/companies/ddl.grn (+1 -1)
===================================================================
--- test/fixture/companies/ddl.grn    2012-07-11 18:12:21 +0900 (f4d8fa2)
+++ test/fixture/companies/ddl.grn    2012-07-11 18:14:12 +0900 (c15d9c2)
@@ -1,6 +1,6 @@
+table_create companies_product TABLE_HASH_KEY ShortText
 table_create companies_age TABLE_HASH_KEY UInt32
 table_create companies_BigramTerms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
-table_create companies_product TABLE_HASH_KEY ShortText
 table_create companies TABLE_HASH_KEY ShortText
 column_create companies address COLUMN_SCALAR ShortText
 column_create companies age COLUMN_SCALAR UInt32
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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