Kouhei Sutou
kous****@users*****
2006年 11月 22日 (水) 18:04:47 JST
Index: tomoe/test/context_spec.rb diff -u tomoe/test/context_spec.rb:1.7 tomoe/test/context_spec.rb:1.8 --- tomoe/test/context_spec.rb:1.7 Wed Nov 22 16:18:11 2006 +++ tomoe/test/context_spec.rb Wed Nov 22 18:04:47 2006 @@ -37,14 +37,18 @@ end end end - cands =****@conte*****_by_strokes(writing) + query = Tomoe::Query.new + query.writing = writing + cands =****@conte*****(query) [base, cands.collect {|cand| cand.character.code}].should == expected end end specify "Search by reading" do - cands =****@conte*****_by_reading("ãã") + query = Tomoe::Query.new + query.add_reading(Tomoe::Reading.new(Tomoe::READING_KUN, "ãã")) + cands =****@conte*****(query) cands.collect {|cand| cand.character.code}.should == ["è", "è", "æ±"] end end