YUKI Hiroshi
null+****@clear*****
Fri Nov 16 16:25:25 JST 2012
YUKI Hiroshi 2012-11-16 16:25:25 +0900 (Fri, 16 Nov 2012) New Revision: 3d8bef0d2f2ae9a8b8d1ce5d180d2974c13543a4 https://github.com/groonga/gcs/commit/3d8bef0d2f2ae9a8b8d1ce5d180d2974c13543a4 Log: Fix mismatching variable name Modified files: test/database-index-field.test.js Modified: test/database-index-field.test.js (+10 -10) =================================================================== --- test/database-index-field.test.js 2012-11-16 16:22:51 +0900 (c687853) +++ test/database-index-field.test.js 2012-11-16 16:25:25 +0900 (d7352f4) @@ -657,7 +657,7 @@ suite('database', function() { { id: 'id2', product: 'nroonga' } ]); - product.type = 'literal'; + field.type = 'literal'; assert.equal(field.type, 'literal'); var actualDump = field.domain.dumpSync(); @@ -678,7 +678,7 @@ suite('database', function() { { id: 'id2', product: 'nroonga' } ]); - product.type = 'text'; + field.type = 'text'; assert.equal(field.type, 'text'); var actualDump = field.domain.dumpSync(); @@ -700,7 +700,7 @@ suite('database', function() { { id: 'id3', age: 'a' } ]); - product.type = 'uint'; + field.type = 'uint'; assert.equal(field.type, 'uint'); var actualDump = field.domain.dumpSync(); @@ -722,7 +722,7 @@ suite('database', function() { { id: 'id2', age: 2 } ]); - product.type = 'text'; + field.type = 'text'; assert.equal(field.type, 'text'); var actualDump = field.domain.dumpSync(); @@ -735,7 +735,7 @@ suite('database', function() { test('for existing field (literal to uint)', function() { var field = new IndexField('age', domain).setType('literal').createSync(); - assert.equal(product.type, 'literal'); + assert.equal(field.type, 'literal'); assert.isTrue(field.exists()); field.domain.loadSync([ @@ -744,8 +744,8 @@ suite('database', function() { { id: 'id3', age: 'a' } ]); - product.type = 'uint'; - assert.equal(product.type, 'uint'); + field.type = 'uint'; + assert.equal(field.type, 'uint'); var actualDump = field.domain.dumpSync(); var expectedDump = [ @@ -758,7 +758,7 @@ suite('database', function() { test('for existing field (uint to literal)', function() { var field = new IndexField('age', domain).setType('uint').createSync(); - assert.equal(product.type, 'uint'); + assert.equal(field.type, 'uint'); assert.isTrue(field.exists()); field.domain.loadSync([ @@ -766,8 +766,8 @@ suite('database', function() { { id: 'id2', age: 2 } ]); - product.type = 'literal'; - assert.equal(product.type, 'literal'); + field.type = 'literal'; + assert.equal(field.type, 'literal'); var actualDump = field.domain.dumpSync(); var expectedDump = [ -------------- next part -------------- HTML����������������������������...Download