rroonga 0.9.5-x86-mingw32 → 1.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +24 -0
- data/NEWS.rdoc +24 -0
- data/README.ja.rdoc +3 -2
- data/README.rdoc +3 -2
- data/Rakefile +15 -6
- data/ext/groonga/extconf.rb +25 -25
- data/ext/groonga/groonga.def +2 -0
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-exception.c +14 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +13 -1
- data/ext/groonga/rb-grn-object.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +394 -1
- data/ext/groonga/rb-grn-table.c +33 -2
- data/ext/groonga/rb-grn.h +3 -3
- data/html/index.html +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/record.rb +32 -2
- data/lib/groonga/schema.rb +1 -1
- data/rroonga-build.rb +3 -3
- data/test/test-patricia-trie.rb +172 -1
- data/test/test-record.rb +7 -0
- data/test/test-remote.rb +2 -1
- data/test/test-table-cursor.rb +35 -1
- data/test/test-table-select-normalize.rb +7 -3
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/etc/groonga/groonga.conf +11 -0
- data/vendor/local/etc/groonga/init.d/redhat/groonga +168 -0
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +8 -0
- data/vendor/local/include/groonga/groonga.h +38 -12
- data/vendor/local/lib/groonga/modules/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/modules/{functions/cast.la → suggest/suggest.la} +6 -6
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +1 -1
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/groonga.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/loading.gif +0 -0
- data/vendor/local/share/groonga/admin_html/js/jquery.json-2.2.min.js +31 -0
- data/vendor/local/share/groonga/doc/ja/html/.buildinfo +4 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +79 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +509 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/default.css +277 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +6240 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/pygments.css +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +518 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +147 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +16 -0
- data/vendor/local/share/groonga/doc/ja/html/characteristic.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/commands.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/check.html +285 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +210 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +221 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/load.html +208 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +187 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +190 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +188 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/select.html +331 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/status.html +179 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +191 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +222 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +202 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +175 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +161 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/developer.html +118 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/com.html +136 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/document.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/query.html +336 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/test.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/execfile.html +370 -0
- data/vendor/local/share/groonga/doc/ja/html/expr.html +157 -0
- data/vendor/local/share/groonga/doc/ja/html/functions.html +122 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +170 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/now.html +152 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/genindex.html +227 -0
- data/vendor/local/share/groonga/doc/ja/html/grnslap.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/grntest.html +368 -0
- data/vendor/local/share/groonga/doc/ja/html/http.html +163 -0
- data/vendor/local/share/groonga/doc/ja/html/index.html +291 -0
- data/vendor/local/share/groonga/doc/ja/html/install.html +228 -0
- data/vendor/local/share/groonga/doc/ja/html/news.html +310 -0
- data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
- data/vendor/local/share/groonga/doc/ja/html/process.html +120 -0
- data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +147 -0
- data/vendor/local/share/groonga/doc/ja/html/reference.html +174 -0
- data/vendor/local/share/groonga/doc/ja/html/search.html +96 -0
- data/vendor/local/share/groonga/doc/ja/html/searchindex.js +1 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +388 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +214 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +169 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +209 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +114 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +458 -0
- data/vendor/local/share/groonga/doc/ja/html/type.html +217 -0
- data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
- data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/source/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/source/conf.py +265 -0
- data/vendor/local/share/groonga/doc/ja/source/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +16 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +8 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +12 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +18 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +13 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +24 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +25 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +21 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +22 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +20 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +14 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/source/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/source/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/source/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/source/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/source/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/source/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/rdoc.py +762 -0
- data/vendor/local/share/groonga/doc/ja/source/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/source/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +113 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +61 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/html/css/dictionary.css +3 -0
- data/vendor/local/share/groonga/examples/dictionary/html/index.html +26 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +51 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.4.2.min.js +154 -0
- data/vendor/local/share/groonga/examples/dictionary/init_db.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +42 -0
- data/vendor/local/share/groonga/examples/dictionary/readme.txt +71 -0
- data/vendor/local/share/man/man1/groonga.1 +5498 -0
- metadata +360 -118
- data/pkg-config.rb +0 -333
- data/pkg/rroonga-0.9.5/NEWS.ja.rdoc +0 -156
- data/pkg/rroonga-0.9.5/NEWS.rdoc +0 -158
- data/pkg/rroonga-0.9.5/README.ja.rdoc +0 -65
- data/pkg/rroonga-0.9.5/README.rdoc +0 -66
- data/pkg/rroonga-0.9.5/text/TUTORIAL.ja.rdoc +0 -394
- data/pkg/rroonga-0.9.5/text/expression.rdoc +0 -285
- data/test-unit/Rakefile +0 -40
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/classic.html +0 -15
- data/test-unit/html/index.html +0 -25
- data/test-unit/html/index.html.ja +0 -27
- data/test-unit/lib/test/unit.rb +0 -323
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1230
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -360
- data/test-unit/lib/test/unit/collector.rb +0 -36
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -144
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/color-scheme.rb +0 -102
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -724
- data/test-unit/lib/test/unit/error.rb +0 -130
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -176
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/testcase.rb +0 -476
- data/test-unit/lib/test/unit/testresult.rb +0 -89
- data/test-unit/lib/test/unit/testsuite.rb +0 -110
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -466
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -92
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -28
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -15
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -67
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -287
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -544
- data/test-unit/test/test_assertions.rb +0 -1151
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -129
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/lib/groonga/modules/functions/cast.dll +0 -0
@@ -1,60 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'test/unit/ui/emacs/testrunner'
|
3
|
-
|
4
|
-
class TestUnitEmacsRunner < Test::Unit::TestCase
|
5
|
-
def test_format_failure_with_a_location
|
6
|
-
runner = create_runner
|
7
|
-
test_name = "test_failure"
|
8
|
-
file = "/home/user/test_xxx.rb"
|
9
|
-
line = "3"
|
10
|
-
info = "in `xxx'"
|
11
|
-
location = "#{file}:#{line}: #{info}"
|
12
|
-
message = "FAIL!!!"
|
13
|
-
failure = Test::Unit::Failure.new(test_name, [location], message)
|
14
|
-
assert_equal(<<-EOM.chomp, runner.send(:format_fault, failure))
|
15
|
-
Failure:
|
16
|
-
#{test_name} [#{file}:#{line}]:
|
17
|
-
#{message}
|
18
|
-
EOM
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_format_failure_with_locations
|
22
|
-
runner = create_runner
|
23
|
-
test_name = "test_failure"
|
24
|
-
locations = ["/home/user/test_xxx.rb:3: in `xxx'",
|
25
|
-
"/home/user/yyy/test_yyy.rb:999: in `yyy'",
|
26
|
-
"/home/user/xyz/zzz.rb:29: in `zzz'"]
|
27
|
-
message = "Many backtrace!!!"
|
28
|
-
failure = Test::Unit::Failure.new(test_name, locations, message)
|
29
|
-
assert_equal(<<-EOM.chomp, runner.send(:format_fault, failure))
|
30
|
-
Failure:
|
31
|
-
#{test_name}
|
32
|
-
#{locations.join("\n")}:
|
33
|
-
#{message}
|
34
|
-
EOM
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_format_error
|
38
|
-
runner = create_runner
|
39
|
-
test_name = "test_error"
|
40
|
-
message = "Error Message!!!"
|
41
|
-
backtrace = ["/home/user/test_xxx.rb:3: in `xxx'",
|
42
|
-
"/home/user/yyy/test_yyy.rb:999: in `yyy'",
|
43
|
-
"/home/user/xyz/zzz.rb:29: in `zzz'"]
|
44
|
-
exception = RuntimeError.new(message)
|
45
|
-
exception.set_backtrace(backtrace)
|
46
|
-
error = Test::Unit::Error.new(test_name, exception)
|
47
|
-
assert_equal(<<-EOM.chomp, runner.send(:format_fault, error))
|
48
|
-
Error:
|
49
|
-
#{test_name}:
|
50
|
-
#{exception.class.name}: #{message}
|
51
|
-
#{backtrace.join("\n")}
|
52
|
-
EOM
|
53
|
-
end
|
54
|
-
|
55
|
-
private
|
56
|
-
def create_runner(suite=nil)
|
57
|
-
suite ||= Test::Unit::TestSuite.new
|
58
|
-
Test::Unit::UI::Emacs::TestRunner.new(suite)
|
59
|
-
end
|
60
|
-
end
|
@@ -1,287 +0,0 @@
|
|
1
|
-
class TestUnitFixture < Test::Unit::TestCase
|
2
|
-
module EmptyModule
|
3
|
-
end
|
4
|
-
|
5
|
-
def test_setup_without_option
|
6
|
-
expected_setup_calls = [:setup,
|
7
|
-
:custom_setup_method0,
|
8
|
-
:custom_setup_method1,
|
9
|
-
:custom_setup_method3]
|
10
|
-
test_case = assert_setup(expected_setup_calls, [])
|
11
|
-
assert_inherited_setup(expected_setup_calls, test_case)
|
12
|
-
|
13
|
-
assert_inherited_setup([:setup], nil)
|
14
|
-
assert_called_fixtures(expected_setup_calls, test_case)
|
15
|
-
end
|
16
|
-
|
17
|
-
def test_setup_with_before_option
|
18
|
-
expected_setup_calls = [:custom_setup_method3,
|
19
|
-
:custom_setup_method0,
|
20
|
-
:custom_setup_method1,
|
21
|
-
:setup]
|
22
|
-
test_case = assert_setup(expected_setup_calls,
|
23
|
-
[[{:before => :append}],
|
24
|
-
[{:before => :append}],
|
25
|
-
[{:before => :prepend}],
|
26
|
-
[{:before => :prepend}]])
|
27
|
-
assert_inherited_setup(expected_setup_calls, test_case)
|
28
|
-
|
29
|
-
assert_inherited_setup([:setup], nil)
|
30
|
-
assert_called_fixtures(expected_setup_calls, test_case)
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_setup_with_after_option
|
34
|
-
expected_setup_calls = [:setup,
|
35
|
-
:custom_setup_method3,
|
36
|
-
:custom_setup_method0,
|
37
|
-
:custom_setup_method1]
|
38
|
-
test_case = assert_setup(expected_setup_calls,
|
39
|
-
[[{:after => :append}],
|
40
|
-
[{:after => :append}],
|
41
|
-
[{:after => :prepend}],
|
42
|
-
[{:after => :prepend}]])
|
43
|
-
assert_inherited_setup(expected_setup_calls, test_case)
|
44
|
-
|
45
|
-
assert_inherited_setup([:setup], nil)
|
46
|
-
assert_called_fixtures(expected_setup_calls, test_case)
|
47
|
-
end
|
48
|
-
|
49
|
-
def test_setup_with_invalid_option
|
50
|
-
assert_invalid_setup_option(:unknown => true)
|
51
|
-
assert_invalid_setup_option(:before => :unknown)
|
52
|
-
assert_invalid_setup_option(:after => :unknown)
|
53
|
-
end
|
54
|
-
|
55
|
-
def test_setup_with_option_to_inherited
|
56
|
-
expected_setup_calls = [:setup]
|
57
|
-
test_case = assert_setup(expected_setup_calls, nil)
|
58
|
-
assert_inherited_setup([:setup,
|
59
|
-
:custom_setup_method0,
|
60
|
-
:custom_setup_method1,
|
61
|
-
:custom_setup_method3],
|
62
|
-
test_case,
|
63
|
-
[])
|
64
|
-
|
65
|
-
assert_inherited_setup([:setup], nil)
|
66
|
-
assert_called_fixtures(expected_setup_calls, test_case)
|
67
|
-
end
|
68
|
-
|
69
|
-
def test_teardown_without_option
|
70
|
-
expected_teardown_calls = [:custom_teardown_method3,
|
71
|
-
:custom_teardown_method1,
|
72
|
-
:custom_teardown_method0,
|
73
|
-
:teardown]
|
74
|
-
test_case = assert_teardown(expected_teardown_calls, [])
|
75
|
-
assert_inherited_teardown(expected_teardown_calls, test_case)
|
76
|
-
|
77
|
-
assert_inherited_teardown([:teardown], nil)
|
78
|
-
assert_called_fixtures(expected_teardown_calls, test_case)
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_teardown_with_before_option
|
82
|
-
expected_teardown_calls = [:custom_teardown_method3,
|
83
|
-
:custom_teardown_method0,
|
84
|
-
:custom_teardown_method1,
|
85
|
-
:teardown]
|
86
|
-
test_case = assert_teardown(expected_teardown_calls,
|
87
|
-
[[{:before => :append}],
|
88
|
-
[{:before => :append}],
|
89
|
-
[{:before => :prepend}],
|
90
|
-
[{:before => :prepend}]])
|
91
|
-
assert_inherited_teardown(expected_teardown_calls, test_case)
|
92
|
-
|
93
|
-
assert_inherited_teardown([:teardown], nil)
|
94
|
-
assert_called_fixtures(expected_teardown_calls, test_case)
|
95
|
-
end
|
96
|
-
|
97
|
-
def test_teardown_with_after_option
|
98
|
-
expected_teardown_calls = [:teardown,
|
99
|
-
:custom_teardown_method3,
|
100
|
-
:custom_teardown_method0,
|
101
|
-
:custom_teardown_method1]
|
102
|
-
test_case = assert_teardown(expected_teardown_calls,
|
103
|
-
[[{:after => :append}],
|
104
|
-
[{:after => :append}],
|
105
|
-
[{:after => :prepend}],
|
106
|
-
[{:after => :prepend}]])
|
107
|
-
assert_inherited_teardown(expected_teardown_calls, test_case)
|
108
|
-
|
109
|
-
assert_inherited_teardown([:teardown], nil)
|
110
|
-
assert_called_fixtures(expected_teardown_calls, test_case)
|
111
|
-
end
|
112
|
-
|
113
|
-
def test_teardown_with_invalid_option
|
114
|
-
assert_invalid_teardown_option(:unknown => true)
|
115
|
-
assert_invalid_teardown_option(:before => :unknown)
|
116
|
-
assert_invalid_teardown_option(:after => :unknown)
|
117
|
-
end
|
118
|
-
|
119
|
-
def test_teardown_with_option_to_inherited
|
120
|
-
expected_teardown_calls = [:teardown]
|
121
|
-
test_case = assert_teardown(expected_teardown_calls, nil)
|
122
|
-
assert_inherited_teardown([:custom_teardown_method3,
|
123
|
-
:custom_teardown_method1,
|
124
|
-
:custom_teardown_method0,
|
125
|
-
:teardown],
|
126
|
-
test_case, [])
|
127
|
-
|
128
|
-
assert_inherited_teardown([:teardown], nil)
|
129
|
-
assert_called_fixtures(expected_teardown_calls, test_case)
|
130
|
-
end
|
131
|
-
|
132
|
-
private
|
133
|
-
def assert_called_fixtures(expected, test_case)
|
134
|
-
test = test_case.new("test_nothing")
|
135
|
-
test.run(Test::Unit::TestResult.new) {}
|
136
|
-
assert_equal(expected, test.called_ids)
|
137
|
-
end
|
138
|
-
|
139
|
-
def assert_setup_customizable(expected, parent, options)
|
140
|
-
test_case = Class.new(parent || Test::Unit::TestCase) do
|
141
|
-
yield(self, :before) if block_given?
|
142
|
-
|
143
|
-
def called_ids
|
144
|
-
@called_ids ||= []
|
145
|
-
end
|
146
|
-
|
147
|
-
def called(id)
|
148
|
-
called_ids << id
|
149
|
-
end
|
150
|
-
|
151
|
-
def setup
|
152
|
-
called(:setup)
|
153
|
-
end
|
154
|
-
|
155
|
-
setup(*(options[0] || [])) if options
|
156
|
-
def custom_setup_method0
|
157
|
-
called(:custom_setup_method0)
|
158
|
-
end
|
159
|
-
|
160
|
-
def custom_setup_method1
|
161
|
-
called(:custom_setup_method1)
|
162
|
-
end
|
163
|
-
setup(*[:custom_setup_method1, *(options[1] || [])]) if options
|
164
|
-
|
165
|
-
setup(*(options[2] || [])) if options
|
166
|
-
def custom_setup_method2
|
167
|
-
called(:custom_setup_method2)
|
168
|
-
end
|
169
|
-
unregister_setup(:custom_setup_method2) if options
|
170
|
-
|
171
|
-
setup(*(options[3] || [])) if options
|
172
|
-
def custom_setup_method3
|
173
|
-
called(:custom_setup_method3)
|
174
|
-
end
|
175
|
-
|
176
|
-
def test_nothing
|
177
|
-
end
|
178
|
-
|
179
|
-
yield(self, :after) if block_given?
|
180
|
-
end
|
181
|
-
|
182
|
-
assert_called_fixtures(expected, test_case)
|
183
|
-
test_case
|
184
|
-
end
|
185
|
-
|
186
|
-
def assert_setup(expected, options)
|
187
|
-
_test_case = assert_setup_customizable(expected, nil, options)
|
188
|
-
assert_setup_customizable(expected, nil, options) do |test_case, tag|
|
189
|
-
test_case.send(:include, EmptyModule) if tag == :before
|
190
|
-
end
|
191
|
-
_test_case
|
192
|
-
end
|
193
|
-
|
194
|
-
def assert_inherited_setup(expected, parent, options=nil)
|
195
|
-
_test_case = assert_setup_customizable(expected, parent, options)
|
196
|
-
assert_setup_customizable(expected, parent, options) do |test_case, tag|
|
197
|
-
test_case.send(:include, EmptyModule) if tag == :before
|
198
|
-
end
|
199
|
-
_test_case
|
200
|
-
end
|
201
|
-
|
202
|
-
def assert_teardown_customizable(expected, parent, options)
|
203
|
-
test_case = Class.new(parent || Test::Unit::TestCase) do
|
204
|
-
yield(self, :before) if block_given?
|
205
|
-
|
206
|
-
def called_ids
|
207
|
-
@called_ids ||= []
|
208
|
-
end
|
209
|
-
|
210
|
-
def called(id)
|
211
|
-
called_ids << id
|
212
|
-
end
|
213
|
-
|
214
|
-
def teardown
|
215
|
-
called(:teardown)
|
216
|
-
end
|
217
|
-
|
218
|
-
teardown(*(options[0] || [])) if options
|
219
|
-
def custom_teardown_method0
|
220
|
-
called(:custom_teardown_method0)
|
221
|
-
end
|
222
|
-
|
223
|
-
def custom_teardown_method1
|
224
|
-
called(:custom_teardown_method1)
|
225
|
-
end
|
226
|
-
teardown(*[:custom_teardown_method1, *(options[1] || [])]) if options
|
227
|
-
|
228
|
-
teardown(*(options[2] || [])) if options
|
229
|
-
def custom_teardown_method2
|
230
|
-
called(:custom_teardown_method2)
|
231
|
-
end
|
232
|
-
unregister_teardown(:custom_teardown_method2) if options
|
233
|
-
|
234
|
-
teardown(*(options[3] || [])) if options
|
235
|
-
def custom_teardown_method3
|
236
|
-
called(:custom_teardown_method3)
|
237
|
-
end
|
238
|
-
|
239
|
-
def test_nothing
|
240
|
-
end
|
241
|
-
|
242
|
-
yield(self, :after) if block_given?
|
243
|
-
end
|
244
|
-
|
245
|
-
assert_called_fixtures(expected, test_case)
|
246
|
-
test_case
|
247
|
-
end
|
248
|
-
|
249
|
-
def assert_teardown(expected, options)
|
250
|
-
assert_teardown_customizable(expected, nil, options)
|
251
|
-
assert_teardown_customizable(expected, nil, options) do |test_case, tag|
|
252
|
-
test_case.send(:include, EmptyModule) if tag == :before
|
253
|
-
end
|
254
|
-
end
|
255
|
-
|
256
|
-
def assert_inherited_teardown(expected, parent, options=nil)
|
257
|
-
assert_teardown_customizable(expected, parent, options)
|
258
|
-
assert_teardown_customizable(expected, parent, options) do |test_case, tag|
|
259
|
-
test_case.send(:include, EmptyModule) if tag == :before
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
def assert_invalid_option(fixture_type, option)
|
264
|
-
exception = assert_raise(ArgumentError) do
|
265
|
-
Class.new(Test::Unit::TestCase) do
|
266
|
-
def test_nothing
|
267
|
-
end
|
268
|
-
|
269
|
-
send(fixture_type, option)
|
270
|
-
def fixture
|
271
|
-
end
|
272
|
-
end
|
273
|
-
end
|
274
|
-
assert_equal("must be {:before => :prepend}, {:before => :append}, " +
|
275
|
-
"{:after => :prepend} or {:after => :append}" +
|
276
|
-
": #{option.inspect}",
|
277
|
-
exception.message)
|
278
|
-
end
|
279
|
-
|
280
|
-
def assert_invalid_setup_option(option)
|
281
|
-
assert_invalid_option(:setup, option)
|
282
|
-
end
|
283
|
-
|
284
|
-
def assert_invalid_teardown_option(option)
|
285
|
-
assert_invalid_option(:teardown, option)
|
286
|
-
end
|
287
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'testunit-test-util'
|
3
|
-
|
4
|
-
class TestUnitNotification < Test::Unit::TestCase
|
5
|
-
include TestUnitTestUtil
|
6
|
-
|
7
|
-
class TestCase < Test::Unit::TestCase
|
8
|
-
class << self
|
9
|
-
def suite
|
10
|
-
Test::Unit::TestSuite.new(name)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_notify
|
15
|
-
notify("1st notify")
|
16
|
-
notify("2nd notify. Reach here.")
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_notify
|
21
|
-
result = _run_test("test_notify")
|
22
|
-
assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
|
23
|
-
"0 omissions, 2 notifications",
|
24
|
-
result.to_s)
|
25
|
-
assert_fault_messages(["1st notify", "2nd notify. Reach here."],
|
26
|
-
result.notifications)
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
def _run_test(name)
|
31
|
-
super(TestCase, name)
|
32
|
-
end
|
33
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'testunit-test-util'
|
3
|
-
|
4
|
-
class TestUnitOmission < Test::Unit::TestCase
|
5
|
-
include TestUnitTestUtil
|
6
|
-
|
7
|
-
class TestCase < Test::Unit::TestCase
|
8
|
-
class << self
|
9
|
-
def suite
|
10
|
-
Test::Unit::TestSuite.new(name)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_omit
|
15
|
-
omit("1st omit")
|
16
|
-
omit("2nd omit. Should not be reached here.")
|
17
|
-
assert(true, "Should not be reached here too.")
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_omit_with_condition
|
21
|
-
omit_if(false, "Never omit.")
|
22
|
-
omit_unless(true, "Never omit too.")
|
23
|
-
omit_if(true, "Should omit.")
|
24
|
-
omit("The last omit. Should not be reached here.")
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_omit_with_block
|
28
|
-
omit("Omit block") do
|
29
|
-
flunk("Should not be reached here.")
|
30
|
-
end
|
31
|
-
assert(true, "Should be reached here.")
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_omit_with_block_and_condition
|
35
|
-
omit_if(false, "Never omit.") do
|
36
|
-
assert(true, "Should be reached here.")
|
37
|
-
end
|
38
|
-
omit_if(true, "Should omit.") do
|
39
|
-
flunk("Never reached here.")
|
40
|
-
end
|
41
|
-
assert(true, "Should be reached here too.")
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def test_omit
|
46
|
-
result = _run_test("test_omit")
|
47
|
-
assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
|
48
|
-
"1 omissions, 0 notifications",
|
49
|
-
result.to_s)
|
50
|
-
assert_fault_messages(["1st omit"], result.omissions)
|
51
|
-
end
|
52
|
-
|
53
|
-
def test_omit_with_condition
|
54
|
-
result = _run_test("test_omit_with_condition")
|
55
|
-
assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
|
56
|
-
"1 omissions, 0 notifications",
|
57
|
-
result.to_s)
|
58
|
-
assert_fault_messages(["Should omit."], result.omissions)
|
59
|
-
end
|
60
|
-
|
61
|
-
def test_omit_with_block
|
62
|
-
result = _run_test("test_omit_with_block")
|
63
|
-
assert_equal("1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, " \
|
64
|
-
"1 omissions, 0 notifications",
|
65
|
-
result.to_s)
|
66
|
-
assert_fault_messages(["Omit block"], result.omissions)
|
67
|
-
end
|
68
|
-
|
69
|
-
def test_omit_with_condition_and_block
|
70
|
-
result = _run_test("test_omit_with_block_and_condition")
|
71
|
-
assert_equal("1 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, " \
|
72
|
-
"1 omissions, 0 notifications",
|
73
|
-
result.to_s)
|
74
|
-
assert_fault_messages(["Should omit."], result.omissions)
|
75
|
-
end
|
76
|
-
|
77
|
-
private
|
78
|
-
def _run_test(name)
|
79
|
-
super(TestCase, name)
|
80
|
-
end
|
81
|
-
end
|