Kouhei Sutou
kous****@users*****
2006年 11月 27日 (月) 15:58:41 JST
Index: tomoe/test/dict_spec.rb diff -u tomoe/test/dict_spec.rb:1.4 tomoe/test/dict_spec.rb:1.5 --- tomoe/test/dict_spec.rb:1.4 Mon Nov 27 13:33:37 2006 +++ tomoe/test/dict_spec.rb Mon Nov 27 15:58:41 2006 @@ -3,7 +3,7 @@ context "Tomoe::Context" do setup do @dict_file = Tempfile.new("tomoe-dict") - @code_point = "ã" + @utf8 = "ã" @strokes = [ [ [18, 19], @@ -36,12 +36,13 @@ strokes_xml << " </stroke>\n" end strokes_xml << " </strokes>" + @dict_content = <<-EOX <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE dictionary SYSTEM "tomoe-dict.dtd"> <dictionary> <character> - <code-point>#{@code_point}</code-point> + <utf8>#{@utf8}</utf8> #{strokes_xml} </character> </dictionary> @@ -51,7 +52,7 @@ specify "should load" do dict = Tomoe::Dict.new(@dict_file.path, true) - a = dict[@code_point] + a = dict[@utf8] a.writing.strokes.should == @strokes end