[Senna-dev 834] Re: Rubyバインディングのテストの走らせ方

Back to archive index

Tasuku SUENAGA a****@razil*****
2008年 5月 9日 (金) 16:47:28 JST


末永です。

このテストですが、
mecabの辞書のエンコーディングがEUC-JPであることを前提としております。

本来はエンコーディングを自動検出して
テストをスキップしたり、適切な文字コードに変換してテストしたい
ところではありますが…

現在、
Sennaのリリース前テストはこのRuby bindingsのテストを用いております。
将来的には、SennaQLという言語でテストを書く予定です。

Cでのテストも書きたいんですが、
なかなか手が回らない状態でして…

Kouhei Sutou さんは書きました:
> 須藤です。
> 
> 2008/05/09 16:13 Tasuku SUENAGA <a****@razil*****>:
> 
>> とりあえず、euc-jpに統一したテストをコミットしてみました。
>> (rev.804)
>> お試しください。
> 
> ありがとうございます。
> 動くようになりました。ただ、手元ではいくつかテストが失
> 敗します。
> 
> % ruby test/all_test.rbx
> Loaded suite test
> Started
> ........F......F...........................E......................
> Finished in 21.025679 seconds.
> 
>   1) Failure:
> test_select_optarg_mode_ja(IndexAdvancedTest)
> [./test/advanced-api-test/test_index_advanced.rb:204]:
> <1> expected but was
> <0>.
> 
>   2) Failure:
> test_exec_escalation(QueryAdvancedTest)
> [./test/advanced-api-test/test_query_advanced.rb:185]:
> <1> expected but was
> <0>.
> 
>   3) Error:
> test_normalize_eucjp_upd(IndexUpdateTest):
> NoMethodError: undefined method `nhits' for nil:NilClass
>     ./test/basic-api-test/test_index_update.rb:84:in `test_normalize_eucjp_upd'
> 
> 66 tests, 4072 assertions, 2 failures, 1 errors
> 
> 環境はDebianのsidでMecab関係のパッケージは以下が入っ
> ています。
> 
> % dpkg -l | grep mecab
> ii  libmecab-dev               0.96-1.1                   Header files of Mecab
> ii  libmecab1                  0.96-1.1                   Libraries of Mecab
> ii  mecab-ipadic               2.7.0+20070801-3           IPA
> dictionary compiled for Mecab
> ii  mecab-ipadic-utf8          2.7.0+20070801-3           IPA
> dictionary encoded in UTF-8 compiled for Mecab
> ii  mecab-jumandic             5.1+20070304-3             Juman
> dictionary compiled for Mecab
> ii  mecab-jumandic-utf8        5.1+20070304-3             Juman
> dictionary encoded in UTF-8 compiled for Mecab
> ii  mecab-utils                0.96-1.1                   Support
> programs of Mecab
> 
> 
> ところで、Sennaの(正式な?)テストはRubyバインディ
> ングを用いたテストという認識であっていますか?
---
末永 匡 <a****@razil*****>




Senna-dev メーリングリストの案内
Back to archive index