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

アーカイブの一覧に戻る

Kouhei Sutou kous****@users*****
2006年 11月 30日 (木) 11:22:31 JST


Index: tomoe/test/char_spec.rb
diff -u tomoe/test/char_spec.rb:1.4 tomoe/test/char_spec.rb:1.5
--- tomoe/test/char_spec.rb:1.4	Tue Nov 28 12:19:01 2006
+++ tomoe/test/char_spec.rb	Thu Nov 30 11:22:31 2006
@@ -15,6 +15,13 @@
     char.to_xml.should == xml
   end
 
+  specify "should load from dumped XML" do
+    char = Tomoe::Char.new
+    char.utf8 = "あ"
+    new_char = Tomoe::Char.new(char.to_xml)
+    new_char.utf8.should == char.utf8
+  end
+
   specify "should set/get n_strokes" do
     char = Tomoe::Char.new
     char.n_strokes.should == -1


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