rroonga 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +13 -5
  2. data/Gemfile +1 -1
  3. data/README.textile +1 -1
  4. data/Rakefile +8 -1
  5. data/bin/grndump +1 -1
  6. data/bin/grntest-log-analyze +1 -1
  7. data/bin/groonga-database-inspect +1 -1
  8. data/bin/groonga-index-dump +1 -1
  9. data/doc/text/news.textile +28 -0
  10. data/ext/groonga/extconf.rb +12 -2
  11. data/ext/groonga/rb-grn-accessor.c +2 -1
  12. data/ext/groonga/rb-grn-array-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-array.c +1 -1
  14. data/ext/groonga/rb-grn-column.c +1 -1
  15. data/ext/groonga/rb-grn-context.c +7 -5
  16. data/ext/groonga/rb-grn-database.c +1 -1
  17. data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
  18. data/ext/groonga/rb-grn-double-array-trie.c +1 -1
  19. data/ext/groonga/rb-grn-encoding-support.c +1 -1
  20. data/ext/groonga/rb-grn-encoding.c +1 -1
  21. data/ext/groonga/rb-grn-exception.c +1 -1
  22. data/ext/groonga/rb-grn-expression-builder.c +1 -1
  23. data/ext/groonga/rb-grn-expression.c +1 -1
  24. data/ext/groonga/rb-grn-fix-size-column.c +1 -1
  25. data/ext/groonga/rb-grn-geo-point.c +1 -1
  26. data/ext/groonga/rb-grn-hash-cursor.c +1 -1
  27. data/ext/groonga/rb-grn-hash.c +1 -1
  28. data/ext/groonga/rb-grn-index-column.c +1 -1
  29. data/ext/groonga/rb-grn-index-cursor.c +1 -1
  30. data/ext/groonga/rb-grn-logger.c +1 -1
  31. data/ext/groonga/rb-grn-normalizer.c +1 -1
  32. data/ext/groonga/rb-grn-object.c +71 -45
  33. data/ext/groonga/rb-grn-operator.c +1 -1
  34. data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
  35. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  36. data/ext/groonga/rb-grn-plugin.c +1 -1
  37. data/ext/groonga/rb-grn-posting.c +1 -1
  38. data/ext/groonga/rb-grn-procedure-type.c +40 -0
  39. data/ext/groonga/rb-grn-procedure.c +17 -4
  40. data/ext/groonga/rb-grn-query-logger.c +1 -1
  41. data/ext/groonga/rb-grn-record.c +1 -1
  42. data/ext/groonga/rb-grn-snippet.c +1 -1
  43. data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
  44. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  45. data/ext/groonga/rb-grn-table-key-support.c +1 -1
  46. data/ext/groonga/rb-grn-table.c +3 -2
  47. data/ext/groonga/rb-grn-type.c +1 -1
  48. data/ext/groonga/rb-grn-utils.c +1 -1
  49. data/ext/groonga/rb-grn-variable-size-column.c +55 -27
  50. data/ext/groonga/rb-grn-variable.c +1 -1
  51. data/ext/groonga/rb-grn.h +4 -2
  52. data/ext/groonga/rb-groonga.c +3 -2
  53. data/extconf.rb +1 -1
  54. data/lib/groonga.rb +1 -1
  55. data/lib/groonga/column.rb +1 -1
  56. data/lib/groonga/context.rb +1 -1
  57. data/lib/groonga/context/command-executor.rb +1 -1
  58. data/lib/groonga/database-inspector.rb +1 -1
  59. data/lib/groonga/database.rb +1 -1
  60. data/lib/groonga/dumper.rb +1 -1
  61. data/lib/groonga/expression-builder-19.rb +1 -1
  62. data/lib/groonga/expression-builder.rb +1 -1
  63. data/lib/groonga/geo-point.rb +1 -1
  64. data/lib/groonga/grntest-log.rb +1 -1
  65. data/lib/groonga/index-column.rb +1 -1
  66. data/lib/groonga/logger.rb +1 -1
  67. data/lib/groonga/memory-pool.rb +1 -2
  68. data/lib/groonga/pagination.rb +1 -1
  69. data/lib/groonga/patricia-trie.rb +1 -1
  70. data/lib/groonga/posting.rb +1 -1
  71. data/lib/groonga/query-logger.rb +1 -1
  72. data/lib/groonga/record.rb +6 -2
  73. data/lib/groonga/schema.rb +1 -1
  74. data/lib/groonga/statistic-measurer.rb +1 -1
  75. data/lib/groonga/sub-records.rb +1 -1
  76. data/lib/groonga/table.rb +1 -1
  77. data/misc/grnop2ruby.rb +1 -1
  78. data/rroonga-build.rb +4 -4
  79. data/rroonga.gemspec +3 -3
  80. data/test/groonga-test-utils.rb +4 -4
  81. data/test/run-test.rb +1 -1
  82. data/test/test-accessor.rb +1 -1
  83. data/test/test-array.rb +1 -1
  84. data/test/test-column.rb +1 -1
  85. data/test/test-command-select.rb +1 -1
  86. data/test/test-context.rb +21 -16
  87. data/test/test-convert.rb +1 -1
  88. data/test/test-database-dumper.rb +1 -1
  89. data/test/test-database-inspector.rb +1 -1
  90. data/test/test-database.rb +38 -25
  91. data/test/test-double-array-trie.rb +1 -1
  92. data/test/test-encoding.rb +1 -1
  93. data/test/test-exception.rb +12 -7
  94. data/test/test-expression-builder.rb +1 -1
  95. data/test/test-expression.rb +1 -1
  96. data/test/test-fix-size-column.rb +1 -1
  97. data/test/test-geo-point.rb +1 -1
  98. data/test/test-gqtp.rb +1 -1
  99. data/test/test-hash.rb +1 -1
  100. data/test/test-index-column.rb +1 -1
  101. data/test/test-index-cursor.rb +1 -1
  102. data/test/test-lock-timeout.rb +1 -1
  103. data/test/test-logger.rb +1 -1
  104. data/test/test-memory-pool.rb +1 -1
  105. data/test/test-normalizer.rb +1 -1
  106. data/test/test-pagination.rb +1 -1
  107. data/test/test-patricia-trie.rb +1 -1
  108. data/test/test-plugin.rb +1 -1
  109. data/test/test-procedure.rb +9 -2
  110. data/test/test-record.rb +1 -1
  111. data/test/test-remote.rb +1 -1
  112. data/test/test-schema-create-table.rb +1 -1
  113. data/test/test-schema-dumper.rb +1 -1
  114. data/test/test-schema-type.rb +1 -1
  115. data/test/test-schema.rb +1 -1
  116. data/test/test-snippet.rb +1 -1
  117. data/test/test-statistic-measurer.rb +1 -1
  118. data/test/test-sub-records.rb +1 -1
  119. data/test/test-table-dumper.rb +1 -1
  120. data/test/test-table-key-support.rb +1 -1
  121. data/test/test-table-offset-and-limit.rb +1 -1
  122. data/test/test-table-select-mecab.rb +1 -1
  123. data/test/test-table-select-normalize.rb +1 -1
  124. data/test/test-table-select-weight.rb +1 -1
  125. data/test/test-table-select.rb +1 -1
  126. data/test/test-table-traverse.rb +1 -1
  127. data/test/test-table.rb +1 -1
  128. data/test/test-type.rb +1 -1
  129. data/test/test-variable-size-column.rb +136 -67
  130. data/test/test-variable.rb +1 -1
  131. data/test/test-vector-column.rb +1 -1
  132. data/test/test-version.rb +1 -1
  133. metadata +83 -80
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class ConvertTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class DatabaseDumperTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class DatabaseInspectorTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class DatabaseTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -19,13 +19,13 @@ class DatabaseTest < Test::Unit::TestCase
19
19
  def test_create
20
20
  assert_nil(Groonga::Context.default.database)
21
21
 
22
- db_path = @tmp_dir + "db"
23
- assert_not_predicate(db_path, :exist?)
24
- database = Groonga::Database.create(:path => db_path.to_s)
25
- assert_predicate(db_path, :exist?)
26
- assert_not_predicate(database, :closed?)
22
+ assert_not_predicate(@database_path, :exist?)
23
+ Groonga::Database.create(:path => @database_path.to_s) do |database|
24
+ assert_predicate(@database_path, :exist?)
25
+ assert_not_predicate(database, :closed?)
27
26
 
28
- assert_equal(database, Groonga::Context.default.database)
27
+ assert_equal(database, Groonga::Context.default.database)
28
+ end
29
29
  end
30
30
 
31
31
  def test_temporary
@@ -37,13 +37,16 @@ class DatabaseTest < Test::Unit::TestCase
37
37
  end
38
38
 
39
39
  def test_open
40
- db_path = @tmp_dir + "db"
41
- database = Groonga::Database.create(:path => db_path.to_s)
42
- database.close
43
-
40
+ create_context = Groonga::Context.new
41
+ database = nil
42
+ create_context.create_database(@database_path.to_s) do |_database|
43
+ database = _database
44
+ end
44
45
  assert_predicate(database, :closed?)
46
+ create_context.close
47
+
45
48
  called = false
46
- Groonga::Database.open(db_path.to_s) do |_database|
49
+ Groonga::Database.open(@database_path.to_s) do |_database|
47
50
  database = _database
48
51
  assert_not_predicate(database, :closed?)
49
52
  called = true
@@ -53,30 +56,40 @@ class DatabaseTest < Test::Unit::TestCase
53
56
  end
54
57
 
55
58
  def test_close
56
- db_path = @tmp_dir + "db"
57
- database = Groonga::Database.create(:path => db_path.to_s)
58
- database.close
59
+ create_context = Groonga::Context.new
60
+ create_context.create_database(@database_path.to_s) do
61
+ end
62
+ create_context.close
59
63
 
60
- database = Groonga::Database.open(db_path.to_s)
61
- assert_not_predicate(database, :closed?)
62
- database.close
64
+ database = nil
65
+ Groonga::Database.open(@database_path.to_s) do |_database|
66
+ database = _database
67
+ assert_not_predicate(database, :closed?)
68
+ end
63
69
  assert_predicate(database, :closed?)
64
70
  end
65
71
 
66
72
  def test_new
67
- db_path = @tmp_dir + "db"
68
73
  assert_raise(Groonga::NoSuchFileOrDirectory) do
69
- Groonga::Database.new(db_path.to_s)
74
+ new_context = Groonga::Context.new
75
+ Groonga::Database.new(@database_path.to_s, :context => new_context)
76
+ end
77
+
78
+ create_context = Groonga::Context.new
79
+ create_context.create_database(@database_path.to_s) do
70
80
  end
71
81
 
72
- Groonga::Database.create(:path => db_path.to_s)
73
- assert_not_predicate(Groonga::Database.new(db_path.to_s), :closed?)
82
+ database = Groonga::Database.new(@database_path.to_s)
83
+ begin
84
+ assert_not_predicate(database, :closed?)
85
+ ensure
86
+ database.close
87
+ end
74
88
  end
75
89
 
76
90
  def test_each
77
- db_path = @tmp_dir + "db"
78
- database = Groonga::Database.create(:path => db_path.to_s)
79
- default_object_names = database.collect {|object| object.name}.sort
91
+ setup_database
92
+ default_object_names = @database.collect {|object| object.name}.sort
80
93
  assert_send([default_object_names, :include?, "Bool"])
81
94
  end
82
95
 
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class DoubleArrayTrieTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class EncodingTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class ExceptionTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -100,7 +100,12 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
100
100
 
101
101
  def setup
102
102
  setup_database
103
- @context = create_sub_context
103
+ @sub_context = create_sub_context
104
+ end
105
+
106
+ def teardown
107
+ @sub_context.database.close
108
+ @sub_context.close
104
109
  end
105
110
 
106
111
  def test_database_each
@@ -108,7 +113,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
108
113
 
109
114
  assert_error do
110
115
  over_limit do
111
- @context.database.each do
116
+ @sub_context.database.each do
112
117
  end
113
118
  end
114
119
  end
@@ -119,7 +124,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
119
124
 
120
125
  assert_error do
121
126
  over_limit do
122
- @context["Users"]
127
+ @sub_context["Users"]
123
128
  end
124
129
  end
125
130
  end
@@ -131,7 +136,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
131
136
  end
132
137
  end
133
138
 
134
- table = @context["Users"]
139
+ table = @sub_context["Users"]
135
140
  assert_error do
136
141
  over_limit do
137
142
  table.columns
@@ -152,7 +157,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
152
157
  end
153
158
  end
154
159
 
155
- column = @context["Users"].column("Bookmarks_user")
160
+ column = @sub_context["Users"].column("Bookmarks_user")
156
161
  assert_error do
157
162
  over_limit do
158
163
  column.sources
@@ -223,7 +228,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
223
228
  end
224
229
 
225
230
  def create_reference_table(key)
226
- Groonga::Hash.create(:context => @context,
231
+ Groonga::Hash.create(:context => @sub_context,
227
232
  :name => "Bookmarks",
228
233
  :key_type => key)
229
234
  end
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class ExpressionBuilderTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class ExpressionTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class FixSizeColumnTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class GeoPointTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class GQTPTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class HashTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class IndexColumnTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class IndexCursorTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class LockTimeoutTest < Test::Unit::TestCase
17
17
  def setup
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class LoggerTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class MemoryPoolTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class NormalizerTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class PaginationTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # You should have received a copy of the GNU Lesser General Public
15
15
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
  class PatriciaTrieTest < Test::Unit::TestCase
19
19
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class PluginTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class ProcedureTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -34,4 +34,11 @@ class ProcedureTest < Test::Unit::TestCase
34
34
  assert_equal(expected_name,
35
35
  procedure ? procedure.name : procedure)
36
36
  end
37
+
38
+ class TypeTest < self
39
+ def test_tokenizer
40
+ tokenizer = Groonga["TokenBigram"]
41
+ assert_equal(Groonga::ProcedureType::TOKENIZER, tokenizer.type)
42
+ end
43
+ end
37
44
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class RecordTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class RemoteTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  module SchemaCreateTableTests
17
17
  def test_normal
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class SchemaDumperTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class SchemaTypeTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # You should have received a copy of the GNU Lesser General Public
13
13
  # License along with this library; if not, write to the Free Software
14
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
15
 
16
16
  class SchemaTest < Test::Unit::TestCase
17
17
  include GroongaTestUtils