[Groonga-commit] groonga/gcs [master] Add assertion for single value fields

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 16 16:41:59 JST 2012


YUKI Hiroshi	2012-11-16 16:41:59 +0900 (Fri, 16 Nov 2012)

  New Revision: 45070131537f081c0e659aaad0951bb44af2cb44
  https://github.com/groonga/gcs/commit/45070131537f081c0e659aaad0951bb44af2cb44

  Log:
    Add assertion for single value fields

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

  Modified: test/database-index-field.test.js (+6 -0)
===================================================================
--- test/database-index-field.test.js    2012-11-16 16:37:04 +0900 (d7352f4)
+++ test/database-index-field.test.js    2012-11-16 16:41:59 +0900 (6f819d0)
@@ -679,6 +679,7 @@ suite('database', function() {
         ]);
 
         field.type = 'text';
+        assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'text');
 
         var actualDump = field.domain.dumpSync();
@@ -701,6 +702,7 @@ suite('database', function() {
         ]);
 
         field.type = 'uint';
+        assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'uint');
 
         var actualDump = field.domain.dumpSync();
@@ -723,6 +725,7 @@ suite('database', function() {
         ]);
 
         field.type = 'text';
+        assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'text');
 
         var actualDump = field.domain.dumpSync();
@@ -745,6 +748,7 @@ suite('database', function() {
         ]);
 
         field.type = 'uint';
+        assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'uint');
 
         var actualDump = field.domain.dumpSync();
@@ -759,6 +763,7 @@ suite('database', function() {
       test('for existing field (uint to literal)', function() {
         var field = new IndexField('age', domain).setType('uint').createSync();
         assert.equal(field.type, 'uint');
+        assert.isFalse(field.multipleValues);
         assert.isTrue(field.exists());
 
         field.domain.loadSync([
@@ -767,6 +772,7 @@ suite('database', function() {
         ]);
 
         field.type = 'literal';
+        assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'literal');
 
         var actualDump = field.domain.dumpSync();
-------------- next part --------------
HTML����������������������������...
Download 



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