rroonga 0.9.5-x86-mingw32 → 1.0.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,70 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'test/unit'
         
     | 
| 
       2 
     | 
    
         
            -
            require 'testunit-test-util'
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            class TestUnitPending < 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_pend
         
     | 
| 
       15 
     | 
    
         
            -
                  pend("1st pend")
         
     | 
| 
       16 
     | 
    
         
            -
                  pend("2nd pend. Should not be reached here.")
         
     | 
| 
       17 
     | 
    
         
            -
                  assert(true, "Should not be reached here too.")
         
     | 
| 
       18 
     | 
    
         
            -
                end
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                def test_pend_with_failure_in_block
         
     | 
| 
       21 
     | 
    
         
            -
                  pend("Wait a minute") do
         
     | 
| 
       22 
     | 
    
         
            -
                    raise "Not implemented yet"
         
     | 
| 
       23 
     | 
    
         
            -
                  end
         
     | 
| 
       24 
     | 
    
         
            -
                  assert(true, "Reached here.")
         
     | 
| 
       25 
     | 
    
         
            -
                end
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                def test_pend_with_no_failure_in_block
         
     | 
| 
       28 
     | 
    
         
            -
                  pend("Wait a minute") do
         
     | 
| 
       29 
     | 
    
         
            -
                    "Nothing raised"
         
     | 
| 
       30 
     | 
    
         
            -
                  end
         
     | 
| 
       31 
     | 
    
         
            -
                  assert(true, "Not reached here.")
         
     | 
| 
       32 
     | 
    
         
            -
                end
         
     | 
| 
       33 
     | 
    
         
            -
              end
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
              def test_pend
         
     | 
| 
       36 
     | 
    
         
            -
                test = nil
         
     | 
| 
       37 
     | 
    
         
            -
                result = _run_test("test_pend") {|t| test = t}
         
     | 
| 
       38 
     | 
    
         
            -
                assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 1 pendings, " \
         
     | 
| 
       39 
     | 
    
         
            -
                             "0 omissions, 0 notifications",
         
     | 
| 
       40 
     | 
    
         
            -
                             result.to_s)
         
     | 
| 
       41 
     | 
    
         
            -
                assert_fault_messages(["1st pend"], result.pendings)
         
     | 
| 
       42 
     | 
    
         
            -
                assert_true(test.interrupted?)
         
     | 
| 
       43 
     | 
    
         
            -
              end
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
              def test_pend_with_failure_in_block
         
     | 
| 
       46 
     | 
    
         
            -
                test = nil
         
     | 
| 
       47 
     | 
    
         
            -
                result = _run_test("test_pend_with_failure_in_block") {|t| test = t}
         
     | 
| 
       48 
     | 
    
         
            -
                assert_equal("1 tests, 1 assertions, 0 failures, 0 errors, 1 pendings, " \
         
     | 
| 
       49 
     | 
    
         
            -
                             "0 omissions, 0 notifications",
         
     | 
| 
       50 
     | 
    
         
            -
                             result.to_s)
         
     | 
| 
       51 
     | 
    
         
            -
                assert_fault_messages(["Wait a minute"], result.pendings)
         
     | 
| 
       52 
     | 
    
         
            -
                assert_false(test.interrupted?)
         
     | 
| 
       53 
     | 
    
         
            -
              end
         
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
              def test_pend_with_no_failure_in_block
         
     | 
| 
       56 
     | 
    
         
            -
                test = nil
         
     | 
| 
       57 
     | 
    
         
            -
                result = _run_test("test_pend_with_no_failure_in_block") {|t| test = t}
         
     | 
| 
       58 
     | 
    
         
            -
                assert_equal("1 tests, 1 assertions, 1 failures, 0 errors, 0 pendings, " \
         
     | 
| 
       59 
     | 
    
         
            -
                             "0 omissions, 0 notifications",
         
     | 
| 
       60 
     | 
    
         
            -
                             result.to_s)
         
     | 
| 
       61 
     | 
    
         
            -
                assert_fault_messages(["Pending block should not be passed: Wait a minute."],
         
     | 
| 
       62 
     | 
    
         
            -
                                      result.failures)
         
     | 
| 
       63 
     | 
    
         
            -
                assert_true(test.interrupted?)
         
     | 
| 
       64 
     | 
    
         
            -
              end
         
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
              private
         
     | 
| 
       67 
     | 
    
         
            -
              def _run_test(name, &block)
         
     | 
| 
       68 
     | 
    
         
            -
                super(TestCase, name, &block)
         
     | 
| 
       69 
     | 
    
         
            -
              end
         
     | 
| 
       70 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,119 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'test/unit'
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            class TestUnitPriority < Test::Unit::TestCase
         
     | 
| 
       4 
     | 
    
         
            -
              class TestCase < Test::Unit::TestCase
         
     | 
| 
       5 
     | 
    
         
            -
                class << self
         
     | 
| 
       6 
     | 
    
         
            -
                  def suite
         
     | 
| 
       7 
     | 
    
         
            -
                    Test::Unit::TestSuite.new(name)
         
     | 
| 
       8 
     | 
    
         
            -
                  end
         
     | 
| 
       9 
     | 
    
         
            -
                end
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
                priority :must
         
     | 
| 
       12 
     | 
    
         
            -
                def test_must
         
     | 
| 
       13 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       14 
     | 
    
         
            -
                end
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
                def test_must_inherited
         
     | 
| 
       17 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       18 
     | 
    
         
            -
                end
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                priority :important
         
     | 
| 
       21 
     | 
    
         
            -
                def test_important
         
     | 
| 
       22 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       23 
     | 
    
         
            -
                end
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                def test_important_inherited
         
     | 
| 
       26 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       27 
     | 
    
         
            -
                end
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
                priority :high
         
     | 
| 
       30 
     | 
    
         
            -
                def test_high
         
     | 
| 
       31 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       32 
     | 
    
         
            -
                end
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
                def test_high_inherited
         
     | 
| 
       35 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       36 
     | 
    
         
            -
                end
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
                priority :normal
         
     | 
| 
       39 
     | 
    
         
            -
                def test_normal
         
     | 
| 
       40 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       41 
     | 
    
         
            -
                end
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                def test_normal_inherited
         
     | 
| 
       44 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       45 
     | 
    
         
            -
                end
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
                priority :low
         
     | 
| 
       48 
     | 
    
         
            -
                def test_low
         
     | 
| 
       49 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       50 
     | 
    
         
            -
                end
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
                def test_low_inherited
         
     | 
| 
       53 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       54 
     | 
    
         
            -
                end
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
                priority :never
         
     | 
| 
       57 
     | 
    
         
            -
                def test_never
         
     | 
| 
       58 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       59 
     | 
    
         
            -
                end
         
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
                def test_never_inherited
         
     | 
| 
       62 
     | 
    
         
            -
                  assert(true)
         
     | 
| 
       63 
     | 
    
         
            -
                end
         
     | 
| 
       64 
     | 
    
         
            -
              end
         
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
              def test_priority
         
     | 
| 
       67 
     | 
    
         
            -
                assert_priority("must", 1.0, 0.0001)
         
     | 
| 
       68 
     | 
    
         
            -
                assert_priority("important", 0.9, 0.09)
         
     | 
| 
       69 
     | 
    
         
            -
                assert_priority("high", 0.70, 0.1)
         
     | 
| 
       70 
     | 
    
         
            -
                assert_priority("normal", 0.5, 0.1)
         
     | 
| 
       71 
     | 
    
         
            -
                assert_priority("low", 0.25, 0.1)
         
     | 
| 
       72 
     | 
    
         
            -
                assert_priority("never", 0.0, 0.0001)
         
     | 
| 
       73 
     | 
    
         
            -
              end
         
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
              def assert_priority(priority, expected, delta)
         
     | 
| 
       76 
     | 
    
         
            -
                assert_need_to_run("test_#{priority}", expected, delta)
         
     | 
| 
       77 
     | 
    
         
            -
                assert_need_to_run("test_#{priority}_inherited", expected, delta)
         
     | 
| 
       78 
     | 
    
         
            -
              end
         
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
              def assert_need_to_run(test_name, expected, delta)
         
     | 
| 
       81 
     | 
    
         
            -
                test = TestCase.new(test_name)
         
     | 
| 
       82 
     | 
    
         
            -
                n = 1000
         
     | 
| 
       83 
     | 
    
         
            -
                n_need_to_run = 0
         
     | 
| 
       84 
     | 
    
         
            -
                n.times do |i|
         
     | 
| 
       85 
     | 
    
         
            -
                  n_need_to_run +=1 if Test::Unit::Priority::Checker.need_to_run?(test)
         
     | 
| 
       86 
     | 
    
         
            -
                end
         
     | 
| 
       87 
     | 
    
         
            -
                assert_in_delta(expected, n_need_to_run.to_f / n, delta)
         
     | 
| 
       88 
     | 
    
         
            -
              end
         
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
              class SpecialNameTestCase < Test::Unit::TestCase
         
     | 
| 
       91 
     | 
    
         
            -
                class << self
         
     | 
| 
       92 
     | 
    
         
            -
                  def suite
         
     | 
| 
       93 
     | 
    
         
            -
                    Test::Unit::TestSuite.new(name)
         
     | 
| 
       94 
     | 
    
         
            -
                  end
         
     | 
| 
       95 
     | 
    
         
            -
                end
         
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
                def test_question?
         
     | 
| 
       98 
     | 
    
         
            -
                end
         
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
                def test_exclamation!
         
     | 
| 
       101 
     | 
    
         
            -
                end
         
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
                def test_equal=
         
     | 
| 
       104 
     | 
    
         
            -
                end
         
     | 
| 
       105 
     | 
    
         
            -
              end
         
     | 
| 
       106 
     | 
    
         
            -
             
     | 
| 
       107 
     | 
    
         
            -
              def test_escaped?
         
     | 
| 
       108 
     | 
    
         
            -
                assert_escaped_name("test_question.predicate", "test_question?")
         
     | 
| 
       109 
     | 
    
         
            -
                assert_escaped_name("test_exclamation.destructive", "test_exclamation!")
         
     | 
| 
       110 
     | 
    
         
            -
                assert_escaped_name("test_equal.equal", "test_equal=")
         
     | 
| 
       111 
     | 
    
         
            -
              end
         
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
              def assert_escaped_name(expected, test_method_name)
         
     | 
| 
       114 
     | 
    
         
            -
                checker = Checker.new(SpecialNameTestCase.new(test_method_name))
         
     | 
| 
       115 
     | 
    
         
            -
                passed_file = checker.send(:passed_file)
         
     | 
| 
       116 
     | 
    
         
            -
                method_name_component = File.basename(File.dirname(passed_file))
         
     | 
| 
       117 
     | 
    
         
            -
                assert_equal(expected, method_name_component)
         
     | 
| 
       118 
     | 
    
         
            -
              end
         
     | 
| 
       119 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,544 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Author:: Nathaniel Talbott.
         
     | 
| 
       2 
     | 
    
         
            -
            # Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
         
     | 
| 
       3 
     | 
    
         
            -
            # License:: Ruby license.
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            require 'test/unit'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            module Test
         
     | 
| 
       8 
     | 
    
         
            -
              module Unit
         
     | 
| 
       9 
     | 
    
         
            -
                class TestTestCase < TestCase
         
     | 
| 
       10 
     | 
    
         
            -
                  self.test_order = :random
         
     | 
| 
       11 
     | 
    
         
            -
                  def test_creation
         
     | 
| 
       12 
     | 
    
         
            -
                    tc = Class.new(TestCase) do
         
     | 
| 
       13 
     | 
    
         
            -
                      def test_with_arguments(arg1, arg2)
         
     | 
| 
       14 
     | 
    
         
            -
                      end
         
     | 
| 
       15 
     | 
    
         
            -
                    end
         
     | 
| 
       16 
     | 
    
         
            -
                  
         
     | 
| 
       17 
     | 
    
         
            -
                    caught = true
         
     | 
| 
       18 
     | 
    
         
            -
                    catch(:invalid_test) do
         
     | 
| 
       19 
     | 
    
         
            -
                      tc.new(:test_with_arguments)
         
     | 
| 
       20 
     | 
    
         
            -
                      caught = false
         
     | 
| 
       21 
     | 
    
         
            -
                    end
         
     | 
| 
       22 
     | 
    
         
            -
                    check("Should have caught an invalid test when there are arguments", caught)
         
     | 
| 
       23 
     | 
    
         
            -
                    
         
     | 
| 
       24 
     | 
    
         
            -
                    caught = true
         
     | 
| 
       25 
     | 
    
         
            -
                    catch(:invalid_test) do
         
     | 
| 
       26 
     | 
    
         
            -
                      tc.new(:non_existent_test)
         
     | 
| 
       27 
     | 
    
         
            -
                      caught = false
         
     | 
| 
       28 
     | 
    
         
            -
                    end
         
     | 
| 
       29 
     | 
    
         
            -
                    check("Should have caught an invalid test when the method does not exist", caught)
         
     | 
| 
       30 
     | 
    
         
            -
                  end
         
     | 
| 
       31 
     | 
    
         
            -
                  
         
     | 
| 
       32 
     | 
    
         
            -
                  def setup
         
     | 
| 
       33 
     | 
    
         
            -
                    @tc_failure_error = Class.new(TestCase) do
         
     | 
| 
       34 
     | 
    
         
            -
                      def test_failure
         
     | 
| 
       35 
     | 
    
         
            -
                        assert_block("failure") { false }
         
     | 
| 
       36 
     | 
    
         
            -
                      end
         
     | 
| 
       37 
     | 
    
         
            -
                      def test_error
         
     | 
| 
       38 
     | 
    
         
            -
                        1 / 0
         
     | 
| 
       39 
     | 
    
         
            -
                      end
         
     | 
| 
       40 
     | 
    
         
            -
                      def test_nested_failure
         
     | 
| 
       41 
     | 
    
         
            -
                        nested
         
     | 
| 
       42 
     | 
    
         
            -
                      end
         
     | 
| 
       43 
     | 
    
         
            -
                      def nested
         
     | 
| 
       44 
     | 
    
         
            -
                        assert_block("nested"){false}
         
     | 
| 
       45 
     | 
    
         
            -
                      end
         
     | 
| 
       46 
     | 
    
         
            -
                      def return_passed?
         
     | 
| 
       47 
     | 
    
         
            -
                        return passed?
         
     | 
| 
       48 
     | 
    
         
            -
                      end
         
     | 
| 
       49 
     | 
    
         
            -
                    end
         
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
                    def @tc_failure_error.name
         
     | 
| 
       52 
     | 
    
         
            -
                      "TC_FailureError"
         
     | 
| 
       53 
     | 
    
         
            -
                    end
         
     | 
| 
       54 
     | 
    
         
            -
                  end
         
     | 
| 
       55 
     | 
    
         
            -
             
         
     | 
| 
       56 
     | 
    
         
            -
                  def test_add_failed_assertion
         
     | 
| 
       57 
     | 
    
         
            -
                    test_case = @tc_failure_error.new(:test_failure)
         
     | 
| 
       58 
     | 
    
         
            -
                    check("passed? should start out true", test_case.return_passed?)
         
     | 
| 
       59 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       60 
     | 
    
         
            -
                    called = false
         
     | 
| 
       61 
     | 
    
         
            -
                    result.add_listener(TestResult::FAULT) {
         
     | 
| 
       62 
     | 
    
         
            -
                      | fault |
         
     | 
| 
       63 
     | 
    
         
            -
                      check("Should have a Failure", fault.instance_of?(Failure))
         
     | 
| 
       64 
     | 
    
         
            -
                      check("The Failure should have the correct message", "failure" == fault.message)
         
     | 
| 
       65 
     | 
    
         
            -
                      check("The Failure should have the correct test_name (was <#{fault.test_name}>)", fault.test_name == "test_failure(TC_FailureError)")
         
     | 
| 
       66 
     | 
    
         
            -
                      r = /\A.*#{Regexp.escape(File.basename(__FILE__))}:\d+:in `test_failure'\Z/
         
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
                      location = fault.location
         
     | 
| 
       69 
     | 
    
         
            -
                      check("The location should be an array", location.kind_of?(Array))
         
     | 
| 
       70 
     | 
    
         
            -
                      check("The location should have two lines (was: <#{location.inspect}>)", location.size == 2)
         
     | 
| 
       71 
     | 
    
         
            -
                      check("The Failure should have the correct location (was <#{location[0].inspect}>, expected <#{r.inspect}>)", r =~ location[0])
         
     | 
| 
       72 
     | 
    
         
            -
                      called = true
         
     | 
| 
       73 
     | 
    
         
            -
                    }
         
     | 
| 
       74 
     | 
    
         
            -
                    progress = []
         
     | 
| 
       75 
     | 
    
         
            -
                    test_case.run(result) { |*arguments| progress << arguments }
         
     | 
| 
       76 
     | 
    
         
            -
                    check("The failure should have triggered the listener", called)
         
     | 
| 
       77 
     | 
    
         
            -
                    check("The failure should have set passed?", !test_case.return_passed?)
         
     | 
| 
       78 
     | 
    
         
            -
                    check("The progress block should have been updated correctly", [[TestCase::STARTED, test_case.name], [TestCase::FINISHED, test_case.name]] == progress)
         
     | 
| 
       79 
     | 
    
         
            -
                  end
         
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
                  def test_add_failure_nested
         
     | 
| 
       82 
     | 
    
         
            -
                    test_case = @tc_failure_error.new(:test_nested_failure)
         
     | 
| 
       83 
     | 
    
         
            -
                    check("passed? should start out true", test_case.return_passed?)
         
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       86 
     | 
    
         
            -
                    called = false
         
     | 
| 
       87 
     | 
    
         
            -
                    result.add_listener(TestResult::FAULT) {
         
     | 
| 
       88 
     | 
    
         
            -
                      | fault |
         
     | 
| 
       89 
     | 
    
         
            -
                      check("Should have a Failure", fault.instance_of?(Failure))
         
     | 
| 
       90 
     | 
    
         
            -
                      check("The Failure should have the correct message", "nested" == fault.message)
         
     | 
| 
       91 
     | 
    
         
            -
                      check("The Failure should have the correct test_name (was <#{fault.test_name}>)", fault.test_name == "test_nested_failure(TC_FailureError)")
         
     | 
| 
       92 
     | 
    
         
            -
                      r = 
         
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
                      location = fault.location
         
     | 
| 
       95 
     | 
    
         
            -
                      check("The location should be an array", location.kind_of?(Array))
         
     | 
| 
       96 
     | 
    
         
            -
                      check("The location should have the correct number of lines (was: <#{location.inspect}>)", location.size == 3)
         
     | 
| 
       97 
     | 
    
         
            -
                      check("The Failure should have the correct location (was <#{location[0].inspect}>)", /\A.*#{Regexp.escape(File.basename(__FILE__))}:\d+:in `nested'\Z/ =~ location[0])
         
     | 
| 
       98 
     | 
    
         
            -
                      check("The Failure should have the correct location (was <#{location[1].inspect}>)", /\A.*#{Regexp.escape(File.basename(__FILE__))}:\d+:in `test_nested_failure'\Z/ =~ location[1])
         
     | 
| 
       99 
     | 
    
         
            -
                      called = true
         
     | 
| 
       100 
     | 
    
         
            -
                    }
         
     | 
| 
       101 
     | 
    
         
            -
                    test_case.run(result){}
         
     | 
| 
       102 
     | 
    
         
            -
                    check("The failure should have triggered the listener", called)
         
     | 
| 
       103 
     | 
    
         
            -
                  end
         
     | 
| 
       104 
     | 
    
         
            -
                  
         
     | 
| 
       105 
     | 
    
         
            -
                  def test_add_error
         
     | 
| 
       106 
     | 
    
         
            -
                    test_case = @tc_failure_error.new(:test_error)
         
     | 
| 
       107 
     | 
    
         
            -
                    check("passed? should start out true", test_case.return_passed?)
         
     | 
| 
       108 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       109 
     | 
    
         
            -
                    called = false
         
     | 
| 
       110 
     | 
    
         
            -
                    result.add_listener(TestResult::FAULT) {
         
     | 
| 
       111 
     | 
    
         
            -
                      | fault |
         
     | 
| 
       112 
     | 
    
         
            -
                      check("Should have a TestError", fault.instance_of?(Error))
         
     | 
| 
       113 
     | 
    
         
            -
                      check("The Error should have the correct message", "ZeroDivisionError: divided by 0" == fault.message)
         
     | 
| 
       114 
     | 
    
         
            -
                      check("The Error should have the correct test_name", "test_error(TC_FailureError)" == fault.test_name)
         
     | 
| 
       115 
     | 
    
         
            -
                      check("The Error should have the correct exception", fault.exception.instance_of?(ZeroDivisionError))
         
     | 
| 
       116 
     | 
    
         
            -
                      called = true
         
     | 
| 
       117 
     | 
    
         
            -
                    }
         
     | 
| 
       118 
     | 
    
         
            -
                    test_case.run(result) {}
         
     | 
| 
       119 
     | 
    
         
            -
                    check("The error should have triggered the listener", called)
         
     | 
| 
       120 
     | 
    
         
            -
                    check("The error should have set passed?", !test_case.return_passed?)
         
     | 
| 
       121 
     | 
    
         
            -
                  end
         
     | 
| 
       122 
     | 
    
         
            -
             
     | 
| 
       123 
     | 
    
         
            -
                  def test_no_tests      
         
     | 
| 
       124 
     | 
    
         
            -
                    suite = TestCase.suite
         
     | 
| 
       125 
     | 
    
         
            -
                    check("Should have a test suite", suite.instance_of?(TestSuite))
         
     | 
| 
       126 
     | 
    
         
            -
                    check("Should have one test", suite.size == 1)
         
     | 
| 
       127 
     | 
    
         
            -
                    check("Should have the default test", suite.tests.first.name == "default_test(Test::Unit::TestCase)")
         
     | 
| 
       128 
     | 
    
         
            -
                    
         
     | 
| 
       129 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       130 
     | 
    
         
            -
                    suite.run(result) {}
         
     | 
| 
       131 
     | 
    
         
            -
                    check("Should have had one test run", result.run_count == 1)
         
     | 
| 
       132 
     | 
    
         
            -
                    check("Should have had one test failure", result.failure_count == 1)
         
     | 
| 
       133 
     | 
    
         
            -
                    check("Should have had no errors", result.error_count == 0)
         
     | 
| 
       134 
     | 
    
         
            -
                  end
         
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
                  def test_suite
         
     | 
| 
       137 
     | 
    
         
            -
                    tc = Class.new(TestCase) do
         
     | 
| 
       138 
     | 
    
         
            -
                      def test_succeed
         
     | 
| 
       139 
     | 
    
         
            -
                        assert_block {true}
         
     | 
| 
       140 
     | 
    
         
            -
                      end
         
     | 
| 
       141 
     | 
    
         
            -
                      def test_fail
         
     | 
| 
       142 
     | 
    
         
            -
                        assert_block {false}
         
     | 
| 
       143 
     | 
    
         
            -
                      end
         
     | 
| 
       144 
     | 
    
         
            -
                      def test_error
         
     | 
| 
       145 
     | 
    
         
            -
                        1/0
         
     | 
| 
       146 
     | 
    
         
            -
                      end
         
     | 
| 
       147 
     | 
    
         
            -
                      def dont_run
         
     | 
| 
       148 
     | 
    
         
            -
                        assert_block {true}
         
     | 
| 
       149 
     | 
    
         
            -
                      end
         
     | 
| 
       150 
     | 
    
         
            -
                      def test_dont_run(argument)
         
     | 
| 
       151 
     | 
    
         
            -
                        assert_block {true}
         
     | 
| 
       152 
     | 
    
         
            -
                      end
         
     | 
| 
       153 
     | 
    
         
            -
                      def test
         
     | 
| 
       154 
     | 
    
         
            -
                        assert_block {true}
         
     | 
| 
       155 
     | 
    
         
            -
                      end
         
     | 
| 
       156 
     | 
    
         
            -
                    end
         
     | 
| 
       157 
     | 
    
         
            -
                  
         
     | 
| 
       158 
     | 
    
         
            -
                    suite = tc.suite
         
     | 
| 
       159 
     | 
    
         
            -
                    check("Should have a test suite", suite.instance_of?(TestSuite))
         
     | 
| 
       160 
     | 
    
         
            -
                    check("Should have three tests", suite.size == 3)
         
     | 
| 
       161 
     | 
    
         
            -
              
         
     | 
| 
       162 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       163 
     | 
    
         
            -
                    suite.run(result) {}
         
     | 
| 
       164 
     | 
    
         
            -
                    check("Should have had three test runs", result.run_count == 3)
         
     | 
| 
       165 
     | 
    
         
            -
                    check("Should have had one test failure", result.failure_count == 1)
         
     | 
| 
       166 
     | 
    
         
            -
                    check("Should have had one test error", result.error_count == 1)
         
     | 
| 
       167 
     | 
    
         
            -
                  end
         
     | 
| 
       168 
     | 
    
         
            -
                  
         
     | 
| 
       169 
     | 
    
         
            -
                 
         
     | 
| 
       170 
     | 
    
         
            -
                  def test_setup_teardown
         
     | 
| 
       171 
     | 
    
         
            -
                    tc = Class.new(TestCase) do
         
     | 
| 
       172 
     | 
    
         
            -
                      attr_reader(:setup_called, :teardown_called)
         
     | 
| 
       173 
     | 
    
         
            -
                      def initialize(test)
         
     | 
| 
       174 
     | 
    
         
            -
                        super(test)
         
     | 
| 
       175 
     | 
    
         
            -
                        @setup_called = false
         
     | 
| 
       176 
     | 
    
         
            -
                        @teardown_called = false
         
     | 
| 
       177 
     | 
    
         
            -
                      end
         
     | 
| 
       178 
     | 
    
         
            -
                      def setup
         
     | 
| 
       179 
     | 
    
         
            -
                        @setup_called = true
         
     | 
| 
       180 
     | 
    
         
            -
                      end
         
     | 
| 
       181 
     | 
    
         
            -
                      def teardown
         
     | 
| 
       182 
     | 
    
         
            -
                        @teardown_called = true
         
     | 
| 
       183 
     | 
    
         
            -
                      end
         
     | 
| 
       184 
     | 
    
         
            -
                      def test_succeed
         
     | 
| 
       185 
     | 
    
         
            -
                        assert_block {true}
         
     | 
| 
       186 
     | 
    
         
            -
                      end
         
     | 
| 
       187 
     | 
    
         
            -
                      def test_fail
         
     | 
| 
       188 
     | 
    
         
            -
                        assert_block {false}
         
     | 
| 
       189 
     | 
    
         
            -
                      end
         
     | 
| 
       190 
     | 
    
         
            -
                      def test_error
         
     | 
| 
       191 
     | 
    
         
            -
                        raise "Error!"
         
     | 
| 
       192 
     | 
    
         
            -
                      end
         
     | 
| 
       193 
     | 
    
         
            -
                    end
         
     | 
| 
       194 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       195 
     | 
    
         
            -
              
         
     | 
| 
       196 
     | 
    
         
            -
                    test = tc.new(:test_succeed)
         
     | 
| 
       197 
     | 
    
         
            -
                    test.run(result) {}
         
     | 
| 
       198 
     | 
    
         
            -
                    check("Should have called setup the correct number of times", test.setup_called)
         
     | 
| 
       199 
     | 
    
         
            -
                    check("Should have called teardown the correct number of times", test.teardown_called)
         
     | 
| 
       200 
     | 
    
         
            -
              
         
     | 
| 
       201 
     | 
    
         
            -
                    test = tc.new(:test_fail)
         
     | 
| 
       202 
     | 
    
         
            -
                    test.run(result) {}
         
     | 
| 
       203 
     | 
    
         
            -
                    check("Should have called setup the correct number of times", test.setup_called)
         
     | 
| 
       204 
     | 
    
         
            -
                    check("Should have called teardown the correct number of times", test.teardown_called)
         
     | 
| 
       205 
     | 
    
         
            -
              
         
     | 
| 
       206 
     | 
    
         
            -
                    test = tc.new(:test_error)
         
     | 
| 
       207 
     | 
    
         
            -
                    test.run(result) {}
         
     | 
| 
       208 
     | 
    
         
            -
                    check("Should have called setup the correct number of times", test.setup_called)
         
     | 
| 
       209 
     | 
    
         
            -
                    check("Should have called teardown the correct number of times", test.teardown_called)
         
     | 
| 
       210 
     | 
    
         
            -
              
         
     | 
| 
       211 
     | 
    
         
            -
                    check("Should have had two test runs", result.run_count == 3)
         
     | 
| 
       212 
     | 
    
         
            -
                    check("Should have had a test failure", result.failure_count == 1)
         
     | 
| 
       213 
     | 
    
         
            -
                    check("Should have had a test error", result.error_count == 1)
         
     | 
| 
       214 
     | 
    
         
            -
                  end
         
     | 
| 
       215 
     | 
    
         
            -
                  
         
     | 
| 
       216 
     | 
    
         
            -
                  def test_assertion_failed_not_called
         
     | 
| 
       217 
     | 
    
         
            -
                    tc = Class.new(TestCase) do
         
     | 
| 
       218 
     | 
    
         
            -
                      def test_thing
         
     | 
| 
       219 
     | 
    
         
            -
                        raise AssertionFailedError.new
         
     | 
| 
       220 
     | 
    
         
            -
                      end
         
     | 
| 
       221 
     | 
    
         
            -
                    end
         
     | 
| 
       222 
     | 
    
         
            -
                    
         
     | 
| 
       223 
     | 
    
         
            -
                    suite = tc.suite
         
     | 
| 
       224 
     | 
    
         
            -
                    check("Should have one test", suite.size == 1)
         
     | 
| 
       225 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       226 
     | 
    
         
            -
                    suite.run(result) {}
         
     | 
| 
       227 
     | 
    
         
            -
                    check("Should have had one test run", result.run_count == 1)
         
     | 
| 
       228 
     | 
    
         
            -
                    check("Should have had one assertion failure", result.failure_count == 1)
         
     | 
| 
       229 
     | 
    
         
            -
                    check("Should not have any assertion errors but had #{result.error_count}", result.error_count == 0)
         
     | 
| 
       230 
     | 
    
         
            -
                  end
         
     | 
| 
       231 
     | 
    
         
            -
                  
         
     | 
| 
       232 
     | 
    
         
            -
                  def test_equality
         
     | 
| 
       233 
     | 
    
         
            -
                    tc1 = Class.new(TestCase) do
         
     | 
| 
       234 
     | 
    
         
            -
                      def test_1
         
     | 
| 
       235 
     | 
    
         
            -
                      end
         
     | 
| 
       236 
     | 
    
         
            -
                      def test_2
         
     | 
| 
       237 
     | 
    
         
            -
                      end
         
     | 
| 
       238 
     | 
    
         
            -
                    end
         
     | 
| 
       239 
     | 
    
         
            -
                    
         
     | 
| 
       240 
     | 
    
         
            -
                    tc2 = Class.new(TestCase) do
         
     | 
| 
       241 
     | 
    
         
            -
                      def test_1
         
     | 
| 
       242 
     | 
    
         
            -
                      end
         
     | 
| 
       243 
     | 
    
         
            -
                    end
         
     | 
| 
       244 
     | 
    
         
            -
                  
         
     | 
| 
       245 
     | 
    
         
            -
                    test1 = tc1.new('test_1')
         
     | 
| 
       246 
     | 
    
         
            -
                    test2 = tc1.new('test_1')
         
     | 
| 
       247 
     | 
    
         
            -
                    check("Should be equal", test1 == test2)
         
     | 
| 
       248 
     | 
    
         
            -
                    check("Should be equal", test2 == test1)
         
     | 
| 
       249 
     | 
    
         
            -
                    
         
     | 
| 
       250 
     | 
    
         
            -
                    test1 = tc1.new('test_2')
         
     | 
| 
       251 
     | 
    
         
            -
                    check("Should not be equal", test1 != test2)
         
     | 
| 
       252 
     | 
    
         
            -
                    check("Should not be equal", test2 != test1)
         
     | 
| 
       253 
     | 
    
         
            -
                    
         
     | 
| 
       254 
     | 
    
         
            -
                    test2 = tc1.new('test_2')
         
     | 
| 
       255 
     | 
    
         
            -
                    check("Should be equal", test1 == test2)
         
     | 
| 
       256 
     | 
    
         
            -
                    check("Should be equal", test2 == test1)
         
     | 
| 
       257 
     | 
    
         
            -
                    
         
     | 
| 
       258 
     | 
    
         
            -
                    test1 = tc1.new('test_1')
         
     | 
| 
       259 
     | 
    
         
            -
                    test2 = tc2.new('test_1')
         
     | 
| 
       260 
     | 
    
         
            -
                    check("Should not be equal", test1 != test2)
         
     | 
| 
       261 
     | 
    
         
            -
                    check("Should not be equal", test2 != test1)
         
     | 
| 
       262 
     | 
    
         
            -
             
     | 
| 
       263 
     | 
    
         
            -
                    
         
     | 
| 
       264 
     | 
    
         
            -
                    check("Should not be equal", test1 != Object.new)
         
     | 
| 
       265 
     | 
    
         
            -
                    check("Should not be equal", Object.new != test1)
         
     | 
| 
       266 
     | 
    
         
            -
                  end
         
     | 
| 
       267 
     | 
    
         
            -
             
     | 
| 
       268 
     | 
    
         
            -
                  def test_re_raise_exception
         
     | 
| 
       269 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       270 
     | 
    
         
            -
                      def test_raise_interrupt
         
     | 
| 
       271 
     | 
    
         
            -
                        raise Interrupt, "from test"
         
     | 
| 
       272 
     | 
    
         
            -
                      end
         
     | 
| 
       273 
     | 
    
         
            -
                    end
         
     | 
| 
       274 
     | 
    
         
            -
             
     | 
| 
       275 
     | 
    
         
            -
                    test = test_case.new("test_raise_interrupt")
         
     | 
| 
       276 
     | 
    
         
            -
                    begin
         
     | 
| 
       277 
     | 
    
         
            -
                      test.run(TestResult.new) {}
         
     | 
| 
       278 
     | 
    
         
            -
                      check("Should not be reached", false)
         
     | 
| 
       279 
     | 
    
         
            -
                    rescue Exception
         
     | 
| 
       280 
     | 
    
         
            -
                      check("Interrupt exception should be re-raised", $!.class == Interrupt)
         
     | 
| 
       281 
     | 
    
         
            -
                    end
         
     | 
| 
       282 
     | 
    
         
            -
                  end
         
     | 
| 
       283 
     | 
    
         
            -
             
     | 
| 
       284 
     | 
    
         
            -
                  def test_startup_shutdown
         
     | 
| 
       285 
     | 
    
         
            -
                    called = []
         
     | 
| 
       286 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       287 
     | 
    
         
            -
                      @@called = called
         
     | 
| 
       288 
     | 
    
         
            -
                      class << self
         
     | 
| 
       289 
     | 
    
         
            -
                        def startup
         
     | 
| 
       290 
     | 
    
         
            -
                          @@called << :startup
         
     | 
| 
       291 
     | 
    
         
            -
                        end
         
     | 
| 
       292 
     | 
    
         
            -
             
     | 
| 
       293 
     | 
    
         
            -
                        def shutdown
         
     | 
| 
       294 
     | 
    
         
            -
                          @@called << :shutdown
         
     | 
| 
       295 
     | 
    
         
            -
                        end
         
     | 
| 
       296 
     | 
    
         
            -
                      end
         
     | 
| 
       297 
     | 
    
         
            -
             
     | 
| 
       298 
     | 
    
         
            -
                      def setup
         
     | 
| 
       299 
     | 
    
         
            -
                        @@called << :setup
         
     | 
| 
       300 
     | 
    
         
            -
                      end
         
     | 
| 
       301 
     | 
    
         
            -
             
     | 
| 
       302 
     | 
    
         
            -
                      def teardown
         
     | 
| 
       303 
     | 
    
         
            -
                        @@called << :teardown
         
     | 
| 
       304 
     | 
    
         
            -
                      end
         
     | 
| 
       305 
     | 
    
         
            -
             
     | 
| 
       306 
     | 
    
         
            -
                      def test1
         
     | 
| 
       307 
     | 
    
         
            -
                      end
         
     | 
| 
       308 
     | 
    
         
            -
             
     | 
| 
       309 
     | 
    
         
            -
                      def test2
         
     | 
| 
       310 
     | 
    
         
            -
                      end
         
     | 
| 
       311 
     | 
    
         
            -
                    end
         
     | 
| 
       312 
     | 
    
         
            -
             
     | 
| 
       313 
     | 
    
         
            -
                    test_suite = test_case.suite
         
     | 
| 
       314 
     | 
    
         
            -
                    test_suite.run(TestResult.new) {}
         
     | 
| 
       315 
     | 
    
         
            -
                    check("startup/shutdown should be called once per test case" +
         
     | 
| 
       316 
     | 
    
         
            -
                          ": #{called.inspect}",
         
     | 
| 
       317 
     | 
    
         
            -
                          called == [:startup,
         
     | 
| 
       318 
     | 
    
         
            -
                                     :setup, :teardown,
         
     | 
| 
       319 
     | 
    
         
            -
                                     :setup, :teardown,
         
     | 
| 
       320 
     | 
    
         
            -
                                     :shutdown])
         
     | 
| 
       321 
     | 
    
         
            -
                  end
         
     | 
| 
       322 
     | 
    
         
            -
             
     | 
| 
       323 
     | 
    
         
            -
                  def test_error_on_startup
         
     | 
| 
       324 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       325 
     | 
    
         
            -
                      class << self
         
     | 
| 
       326 
     | 
    
         
            -
                        def startup
         
     | 
| 
       327 
     | 
    
         
            -
                          raise "from startup"
         
     | 
| 
       328 
     | 
    
         
            -
                        end
         
     | 
| 
       329 
     | 
    
         
            -
                      end
         
     | 
| 
       330 
     | 
    
         
            -
             
     | 
| 
       331 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       332 
     | 
    
         
            -
                      end
         
     | 
| 
       333 
     | 
    
         
            -
                    end
         
     | 
| 
       334 
     | 
    
         
            -
             
     | 
| 
       335 
     | 
    
         
            -
                    test_suite = test_case.suite
         
     | 
| 
       336 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       337 
     | 
    
         
            -
                    test_suite.run(result) {}
         
     | 
| 
       338 
     | 
    
         
            -
                    check("Should record an error on startup: #{result}",
         
     | 
| 
       339 
     | 
    
         
            -
                          result.error_count == 1)
         
     | 
| 
       340 
     | 
    
         
            -
                  end
         
     | 
| 
       341 
     | 
    
         
            -
             
     | 
| 
       342 
     | 
    
         
            -
                  def test_pass_through_error_on_startup
         
     | 
| 
       343 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       344 
     | 
    
         
            -
                      class << self
         
     | 
| 
       345 
     | 
    
         
            -
                        def startup
         
     | 
| 
       346 
     | 
    
         
            -
                          raise Interrupt, "from startup"
         
     | 
| 
       347 
     | 
    
         
            -
                        end
         
     | 
| 
       348 
     | 
    
         
            -
                      end
         
     | 
| 
       349 
     | 
    
         
            -
             
     | 
| 
       350 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       351 
     | 
    
         
            -
                      end
         
     | 
| 
       352 
     | 
    
         
            -
                    end
         
     | 
| 
       353 
     | 
    
         
            -
             
     | 
| 
       354 
     | 
    
         
            -
                    test_suite = test_case.suite
         
     | 
| 
       355 
     | 
    
         
            -
                    begin
         
     | 
| 
       356 
     | 
    
         
            -
                      test_suite.run(TestResult.new) {}
         
     | 
| 
       357 
     | 
    
         
            -
                      check("Should not be reached", false)
         
     | 
| 
       358 
     | 
    
         
            -
                    rescue Exception
         
     | 
| 
       359 
     | 
    
         
            -
                      check("Interrupt should be passed through: #{$!}",
         
     | 
| 
       360 
     | 
    
         
            -
                            Interrupt === $!)
         
     | 
| 
       361 
     | 
    
         
            -
                    end
         
     | 
| 
       362 
     | 
    
         
            -
                  end
         
     | 
| 
       363 
     | 
    
         
            -
             
     | 
| 
       364 
     | 
    
         
            -
                  def test_error_on_shutdown
         
     | 
| 
       365 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       366 
     | 
    
         
            -
                      class << self
         
     | 
| 
       367 
     | 
    
         
            -
                        def shutdown
         
     | 
| 
       368 
     | 
    
         
            -
                          raise "from shutdown"
         
     | 
| 
       369 
     | 
    
         
            -
                        end
         
     | 
| 
       370 
     | 
    
         
            -
                      end
         
     | 
| 
       371 
     | 
    
         
            -
             
     | 
| 
       372 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       373 
     | 
    
         
            -
                      end
         
     | 
| 
       374 
     | 
    
         
            -
                    end
         
     | 
| 
       375 
     | 
    
         
            -
             
     | 
| 
       376 
     | 
    
         
            -
                    test_suite = test_case.suite
         
     | 
| 
       377 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       378 
     | 
    
         
            -
                    test_suite.run(result) {}
         
     | 
| 
       379 
     | 
    
         
            -
                    check("Should record an error on shutdown: #{result}",
         
     | 
| 
       380 
     | 
    
         
            -
                          result.error_count == 1)
         
     | 
| 
       381 
     | 
    
         
            -
                  end
         
     | 
| 
       382 
     | 
    
         
            -
             
     | 
| 
       383 
     | 
    
         
            -
                  def test_pass_through_error_on_shutdown
         
     | 
| 
       384 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       385 
     | 
    
         
            -
                      class << self
         
     | 
| 
       386 
     | 
    
         
            -
                        def shutdown
         
     | 
| 
       387 
     | 
    
         
            -
                          raise Interrupt, "from shutdown"
         
     | 
| 
       388 
     | 
    
         
            -
                        end
         
     | 
| 
       389 
     | 
    
         
            -
                      end
         
     | 
| 
       390 
     | 
    
         
            -
             
     | 
| 
       391 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       392 
     | 
    
         
            -
                      end
         
     | 
| 
       393 
     | 
    
         
            -
                    end
         
     | 
| 
       394 
     | 
    
         
            -
             
     | 
| 
       395 
     | 
    
         
            -
                    test_suite = test_case.suite
         
     | 
| 
       396 
     | 
    
         
            -
                    begin
         
     | 
| 
       397 
     | 
    
         
            -
                      test_suite.run(TestResult.new) {}
         
     | 
| 
       398 
     | 
    
         
            -
                      check("Should not be reached", false)
         
     | 
| 
       399 
     | 
    
         
            -
                    rescue Exception
         
     | 
| 
       400 
     | 
    
         
            -
                      check("Interrupt should be passed through: #{$!}",
         
     | 
| 
       401 
     | 
    
         
            -
                            Interrupt === $!)
         
     | 
| 
       402 
     | 
    
         
            -
                    end
         
     | 
| 
       403 
     | 
    
         
            -
                  end
         
     | 
| 
       404 
     | 
    
         
            -
             
     | 
| 
       405 
     | 
    
         
            -
                  def test_interrupted
         
     | 
| 
       406 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       407 
     | 
    
         
            -
                      def test_fail
         
     | 
| 
       408 
     | 
    
         
            -
                        flunk
         
     | 
| 
       409 
     | 
    
         
            -
                      end
         
     | 
| 
       410 
     | 
    
         
            -
             
     | 
| 
       411 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       412 
     | 
    
         
            -
                      end
         
     | 
| 
       413 
     | 
    
         
            -
                    end
         
     | 
| 
       414 
     | 
    
         
            -
             
     | 
| 
       415 
     | 
    
         
            -
                    failed_test = test_case.new(:test_fail)
         
     | 
| 
       416 
     | 
    
         
            -
                    failed_test.run(TestResult.new) {}
         
     | 
| 
       417 
     | 
    
         
            -
                    check("Should be interrupted", failed_test.interrupted?)
         
     | 
| 
       418 
     | 
    
         
            -
             
     | 
| 
       419 
     | 
    
         
            -
                    success_test = test_case.new(:test_nothing)
         
     | 
| 
       420 
     | 
    
         
            -
                    success_test.run(TestResult.new) {}
         
     | 
| 
       421 
     | 
    
         
            -
                    check("Should not be interrupted", !success_test.interrupted?)
         
     | 
| 
       422 
     | 
    
         
            -
                  end
         
     | 
| 
       423 
     | 
    
         
            -
             
     | 
| 
       424 
     | 
    
         
            -
                  def test_inherited_test_should_be_ignored
         
     | 
| 
       425 
     | 
    
         
            -
                    test_case = Class.new(TestCase) do
         
     | 
| 
       426 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       427 
     | 
    
         
            -
                      end
         
     | 
| 
       428 
     | 
    
         
            -
                    end
         
     | 
| 
       429 
     | 
    
         
            -
             
     | 
| 
       430 
     | 
    
         
            -
                    sub_test_case = Class.new(test_case) do
         
     | 
| 
       431 
     | 
    
         
            -
                      def test_fail
         
     | 
| 
       432 
     | 
    
         
            -
                        flunk
         
     | 
| 
       433 
     | 
    
         
            -
                      end
         
     | 
| 
       434 
     | 
    
         
            -
                    end
         
     | 
| 
       435 
     | 
    
         
            -
             
     | 
| 
       436 
     | 
    
         
            -
                    assert_nothing_thrown do
         
     | 
| 
       437 
     | 
    
         
            -
                      test_case.new("test_nothing")
         
     | 
| 
       438 
     | 
    
         
            -
                    end
         
     | 
| 
       439 
     | 
    
         
            -
             
     | 
| 
       440 
     | 
    
         
            -
                    assert_nothing_thrown do
         
     | 
| 
       441 
     | 
    
         
            -
                      sub_test_case.new("test_fail")
         
     | 
| 
       442 
     | 
    
         
            -
                    end
         
     | 
| 
       443 
     | 
    
         
            -
             
     | 
| 
       444 
     | 
    
         
            -
                    assert_throw(:invalid_test) do
         
     | 
| 
       445 
     | 
    
         
            -
                      sub_test_case.new("test_nothing")
         
     | 
| 
       446 
     | 
    
         
            -
                    end
         
     | 
| 
       447 
     | 
    
         
            -
                  end
         
     | 
| 
       448 
     | 
    
         
            -
             
     | 
| 
       449 
     | 
    
         
            -
                  def test_mixin_test_should_not_be_ignored
         
     | 
| 
       450 
     | 
    
         
            -
                    test_module = Module.new do
         
     | 
| 
       451 
     | 
    
         
            -
                      def test_nothing
         
     | 
| 
       452 
     | 
    
         
            -
                      end
         
     | 
| 
       453 
     | 
    
         
            -
                    end
         
     | 
| 
       454 
     | 
    
         
            -
             
     | 
| 
       455 
     | 
    
         
            -
                    test_case = Class.new(Test::Unit::TestCase) do
         
     | 
| 
       456 
     | 
    
         
            -
                      include test_module
         
     | 
| 
       457 
     | 
    
         
            -
             
     | 
| 
       458 
     | 
    
         
            -
                      def test_fail
         
     | 
| 
       459 
     | 
    
         
            -
                        flunk
         
     | 
| 
       460 
     | 
    
         
            -
                      end
         
     | 
| 
       461 
     | 
    
         
            -
                    end
         
     | 
| 
       462 
     | 
    
         
            -
             
     | 
| 
       463 
     | 
    
         
            -
                    assert_nothing_thrown do
         
     | 
| 
       464 
     | 
    
         
            -
                      test_case.new("test_nothing")
         
     | 
| 
       465 
     | 
    
         
            -
                    end
         
     | 
| 
       466 
     | 
    
         
            -
             
     | 
| 
       467 
     | 
    
         
            -
                    assert_nothing_thrown do
         
     | 
| 
       468 
     | 
    
         
            -
                      test_case.new("test_fail")
         
     | 
| 
       469 
     | 
    
         
            -
                    end
         
     | 
| 
       470 
     | 
    
         
            -
                  end
         
     | 
| 
       471 
     | 
    
         
            -
             
     | 
| 
       472 
     | 
    
         
            -
                  def test_defined_order
         
     | 
| 
       473 
     | 
    
         
            -
                    test_case = Class.new(Test::Unit::TestCase) do
         
     | 
| 
       474 
     | 
    
         
            -
                      def test_z
         
     | 
| 
       475 
     | 
    
         
            -
                      end
         
     | 
| 
       476 
     | 
    
         
            -
             
     | 
| 
       477 
     | 
    
         
            -
                      def test_1
         
     | 
| 
       478 
     | 
    
         
            -
                      end
         
     | 
| 
       479 
     | 
    
         
            -
             
     | 
| 
       480 
     | 
    
         
            -
                      def test_a
         
     | 
| 
       481 
     | 
    
         
            -
                      end
         
     | 
| 
       482 
     | 
    
         
            -
                    end
         
     | 
| 
       483 
     | 
    
         
            -
             
     | 
| 
       484 
     | 
    
         
            -
                    assert_equal(["test_1", "test_a", "test_z"],
         
     | 
| 
       485 
     | 
    
         
            -
                                 test_case.suite.tests.collect {|test| test.method_name})
         
     | 
| 
       486 
     | 
    
         
            -
             
     | 
| 
       487 
     | 
    
         
            -
                    test_case.test_order = :defined
         
     | 
| 
       488 
     | 
    
         
            -
                    assert_equal(["test_z", "test_1", "test_a"],
         
     | 
| 
       489 
     | 
    
         
            -
                                 test_case.suite.tests.collect {|test| test.method_name})
         
     | 
| 
       490 
     | 
    
         
            -
                  end
         
     | 
| 
       491 
     | 
    
         
            -
             
     | 
| 
       492 
     | 
    
         
            -
                  def test_declarative_style
         
     | 
| 
       493 
     | 
    
         
            -
                    test_case = Class.new(Test::Unit::TestCase) do
         
     | 
| 
       494 
     | 
    
         
            -
                      test "declarative style test definition" do
         
     | 
| 
       495 
     | 
    
         
            -
                      end
         
     | 
| 
       496 
     | 
    
         
            -
             
     | 
| 
       497 
     | 
    
         
            -
                      test "include parenthesis" do
         
     | 
| 
       498 
     | 
    
         
            -
                      end
         
     | 
| 
       499 
     | 
    
         
            -
             
     | 
| 
       500 
     | 
    
         
            -
                      test "1 + 2 = 3" do
         
     | 
| 
       501 
     | 
    
         
            -
                      end
         
     | 
| 
       502 
     | 
    
         
            -
                    end
         
     | 
| 
       503 
     | 
    
         
            -
             
     | 
| 
       504 
     | 
    
         
            -
                    test_case.test_order = :defined
         
     | 
| 
       505 
     | 
    
         
            -
             
     | 
| 
       506 
     | 
    
         
            -
                    assert_equal(["test_declarative_style_test_definition",
         
     | 
| 
       507 
     | 
    
         
            -
                                  "test_include_parenthesis",
         
     | 
| 
       508 
     | 
    
         
            -
                                  "test_1_2_3"],
         
     | 
| 
       509 
     | 
    
         
            -
                                 test_case.suite.tests.collect {|test| test.method_name})
         
     | 
| 
       510 
     | 
    
         
            -
             
     | 
| 
       511 
     | 
    
         
            -
                    assert_equal(["declarative style test definition",
         
     | 
| 
       512 
     | 
    
         
            -
                                  "include parenthesis",
         
     | 
| 
       513 
     | 
    
         
            -
                                  "1 + 2 = 3"],
         
     | 
| 
       514 
     | 
    
         
            -
                                 test_case.suite.tests.collect {|test| test.description})
         
     | 
| 
       515 
     | 
    
         
            -
                  end
         
     | 
| 
       516 
     | 
    
         
            -
             
     | 
| 
       517 
     | 
    
         
            -
                  def test_redefine_method
         
     | 
| 
       518 
     | 
    
         
            -
                    test_case = Class.new(Test::Unit::TestCase) do
         
     | 
| 
       519 
     | 
    
         
            -
                      def test_name
         
     | 
| 
       520 
     | 
    
         
            -
                      end
         
     | 
| 
       521 
     | 
    
         
            -
                      alias_method :test_name2, :test_name
         
     | 
| 
       522 
     | 
    
         
            -
             
     | 
| 
       523 
     | 
    
         
            -
                      def test_name
         
     | 
| 
       524 
     | 
    
         
            -
                      end
         
     | 
| 
       525 
     | 
    
         
            -
                    end
         
     | 
| 
       526 
     | 
    
         
            -
             
     | 
| 
       527 
     | 
    
         
            -
                    suite = test_case.suite
         
     | 
| 
       528 
     | 
    
         
            -
                    assert_equal(["test_name", "test_name2"],
         
     | 
| 
       529 
     | 
    
         
            -
                                 suite.tests.collect {|test| test.method_name})
         
     | 
| 
       530 
     | 
    
         
            -
                    result = TestResult.new
         
     | 
| 
       531 
     | 
    
         
            -
                    suite.run(result) {}
         
     | 
| 
       532 
     | 
    
         
            -
                    assert_equal("2 tests, 0 assertions, 0 failures, " +
         
     | 
| 
       533 
     | 
    
         
            -
                                 "0 errors, 0 pendings, 0 omissions, 1 notifications",
         
     | 
| 
       534 
     | 
    
         
            -
                                 result.summary)
         
     | 
| 
       535 
     | 
    
         
            -
                  end
         
     | 
| 
       536 
     | 
    
         
            -
             
     | 
| 
       537 
     | 
    
         
            -
                  private
         
     | 
| 
       538 
     | 
    
         
            -
                  def check(message, passed)
         
     | 
| 
       539 
     | 
    
         
            -
                    add_assertion
         
     | 
| 
       540 
     | 
    
         
            -
                    raise AssertionFailedError.new(message) unless passed
         
     | 
| 
       541 
     | 
    
         
            -
                  end
         
     | 
| 
       542 
     | 
    
         
            -
                end
         
     | 
| 
       543 
     | 
    
         
            -
              end
         
     | 
| 
       544 
     | 
    
         
            -
            end
         
     |