Kouhei Sutou
kous****@users*****
2006年 11月 30日 (木) 12:03:32 JST
Index: tomoe/test/char_spec.rb diff -u tomoe/test/char_spec.rb:1.6 tomoe/test/char_spec.rb:1.7 --- tomoe/test/char_spec.rb:1.6 Thu Nov 30 11:53:15 2006 +++ tomoe/test/char_spec.rb Thu Nov 30 12:03:32 2006 @@ -86,4 +86,12 @@ char.add_radical(radical2) char.radicals.sort.should == [radical1, radical2].sort end + + specify "should be comparable" do + char1 = Tomoe::Char.new + char1.utf8 = "ã" + char2 = Tomoe::Char.new + char2.utf8 = "ã" + char1.should == char2 + end end