[3091] MacRuby/trunk/spec/frozen/core/string/dump_spec.rb
Revision: 3091 http://trac.macosforge.org/projects/ruby/changeset/3091 Author: lsansonetti@apple.com Date: 2009-12-09 14:13:04 -0800 (Wed, 09 Dec 2009) Log Message: ----------- fixed the definition of a spec Modified Paths: -------------- MacRuby/trunk/spec/frozen/core/string/dump_spec.rb Modified: MacRuby/trunk/spec/frozen/core/string/dump_spec.rb =================================================================== --- MacRuby/trunk/spec/frozen/core/string/dump_spec.rb 2009-12-09 02:21:10 UTC (rev 3090) +++ MacRuby/trunk/spec/frozen/core/string/dump_spec.rb 2009-12-09 22:13:04 UTC (rev 3091) @@ -15,15 +15,15 @@ ruby_version_is "1.9" do it "returns a string with nonprinting charaters replaced by \\x notation" do ("\000".."A").to_a.join('').should == "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\e\x1C\x1D\x1E\x1F !\"\#$%&'()*+,-./0123456789:;<=>?@A" - # This test is based on my observations; the precise workings of this - # feature are unknown to me - it "includes .force_encoding(name) if the encoding isn't ASCII compatiable" do - "\u{876}".encode('utf-16be').dump.should == - "\"\\bv\".force_encoding(\"UTF-16BE\")" - "\u{876}".encode('utf-16le').dump.should == - "\"v\\b\".force_encoding(\"UTF-16LE\")" - end end + # This test is based on my observations; the precise workings of this + # feature are unknown to me + it "includes .force_encoding(name) if the encoding isn't ASCII compatiable" do + "\u{876}".encode('utf-16be').dump.should == + "\"\\bv\".force_encoding(\"UTF-16BE\")" + "\u{876}".encode('utf-16le').dump.should == + "\"v\\b\".force_encoding(\"UTF-16LE\")" + end end # $KCODE is deprecated on 1.9
participants (1)
-
source_changes@macosforge.org