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

Back to archive index

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


Index: tomoe/test/handwrite_spec.rb
diff -u tomoe/test/handwrite_spec.rb:1.3 tomoe/test/handwrite_spec.rb:removed
--- tomoe/test/handwrite_spec.rb:1.3	Wed Nov 22 15:43:38 2006
+++ tomoe/test/handwrite_spec.rb	Wed Nov 22 15:44:23 2006
@@ -1,29 +0,0 @@
-require 'tomoe-spec-utils'
-
-context "Tomoe::Writing" do
-  inherit TomoeSpecBase
-  include TomoeSpecUtils
-
-  specify "should each all strokes" do
-    writing = Tomoe::Writing.new
-    strokes = [
-               [[51, 29], [177, 41]],
-               [[99, 65], [219, 77]],
-               [[27, 131], [261, 131]],
-               [[129, 17], [57, 203]],
-               [[111, 71], [219, 173]],
-               [[81, 161], [93, 281]],
-               [[99, 167], [207, 167], [189, 245]],
-               [[99, 227], [189, 227]],
-               [[111, 257], [189, 245]],
-              ]
-    strokes.each do |first_point, *rest_points|
-      writing.move_to(*first_point)
-      rest_points.each do |x, y|
-        writing.line_to(x, y)
-      end
-    end
-
-    writing.collect.should == strokes
-  end
-end
Index: tomoe/test/writing_spec.rb
diff -u /dev/null tomoe/test/writing_spec.rb:1.1
--- /dev/null	Wed Nov 22 15:44:23 2006
+++ tomoe/test/writing_spec.rb	Wed Nov 22 15:44:23 2006
@@ -0,0 +1,29 @@
+require 'tomoe-spec-utils'
+
+context "Tomoe::Writing" do
+  inherit TomoeSpecBase
+  include TomoeSpecUtils
+
+  specify "should each all strokes" do
+    writing = Tomoe::Writing.new
+    strokes = [
+               [[51, 29], [177, 41]],
+               [[99, 65], [219, 77]],
+               [[27, 131], [261, 131]],
+               [[129, 17], [57, 203]],
+               [[111, 71], [219, 173]],
+               [[81, 161], [93, 281]],
+               [[99, 167], [207, 167], [189, 245]],
+               [[99, 227], [189, 227]],
+               [[111, 257], [189, 245]],
+              ]
+    strokes.each do |first_point, *rest_points|
+      writing.move_to(*first_point)
+      rest_points.each do |x, y|
+        writing.line_to(x, y)
+      end
+    end
+
+    writing.collect.should == strokes
+  end
+end


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