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

Back to archive index

Kouhei Sutou kous****@users*****
2006年 11月 22日 (水) 15:43:38 JST


Index: tomoe/test/context_spec.rb
diff -u tomoe/test/context_spec.rb:1.5 tomoe/test/context_spec.rb:1.6
--- tomoe/test/context_spec.rb:1.5	Wed Nov 22 13:10:03 2006
+++ tomoe/test/context_spec.rb	Wed Nov 22 15:43:38 2006
@@ -11,7 +11,7 @@
   end
 
   specify "Search by strokes" do
-    glyph = Tomoe::Glyph.new
+    writing = Tomoe::Writing.new
     strokes = [
              [[51, 29], [177, 41]],
              [[99, 65], [219, 77]],
@@ -24,12 +24,12 @@
              [[111, 257], [189, 245]],
             ]
     strokes.each do |first_point, *rest_points|
-      glyph.move_to(*first_point)
+      writing.move_to(*first_point)
       rest_points.each do |x, y|
-        glyph.line_to(x, y)
+        writing.line_to(x, y)
       end
     end
-    cands =****@conte*****_by_strokes(glyph)
+    cands =****@conte*****_by_strokes(writing)
 
     cands.collect {|cand| cand.character.code}.should == ["春", "屠"]
   end
Index: tomoe/test/handwrite_spec.rb
diff -u tomoe/test/handwrite_spec.rb:1.2 tomoe/test/handwrite_spec.rb:1.3
--- tomoe/test/handwrite_spec.rb:1.2	Wed Nov 22 13:10:03 2006
+++ tomoe/test/handwrite_spec.rb	Wed Nov 22 15:43:38 2006
@@ -1,11 +1,11 @@
 require 'tomoe-spec-utils'
 
-context "Tomoe::Glyph" do
+context "Tomoe::Writing" do
   inherit TomoeSpecBase
   include TomoeSpecUtils
 
   specify "should each all strokes" do
-    glyph = Tomoe::Glyph.new
+    writing = Tomoe::Writing.new
     strokes = [
                [[51, 29], [177, 41]],
                [[99, 65], [219, 77]],
@@ -18,12 +18,12 @@
                [[111, 257], [189, 245]],
               ]
     strokes.each do |first_point, *rest_points|
-      glyph.move_to(*first_point)
+      writing.move_to(*first_point)
       rest_points.each do |x, y|
-        glyph.line_to(x, y)
+        writing.line_to(x, y)
       end
     end
 
-    glyph.collect.should == strokes
+    writing.collect.should == strokes
   end
 end


tomoe-cvs メーリングリストの案内
Back to archive index