[Tomoe-cvs 889] CVS update: tomoe/test

アーカイブの一覧に戻る

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


tomoe-cvs メーリングリストの案内
アーカイブの一覧に戻る