[1.9] [RubySpec] Encoding::Converter#replacement= spec failures
---------------------------------------------------------------
Key: JRUBY-6183
URL: https://jira.codehaus.org/browse/JRUBY-6183
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9.3, RubySpec
Reporter: Hiro Asari
Assignee: Thomas E Enebo
{noformat}
103)
Encoding::Converter#replacement returns '?' in US-ASCII when the destination
encoding is not UTF-8 ERROR
NoMethodError: undefined method `replacement' for
#<Encoding::Converter:0x1520a48c>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:7:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:4:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
104)
Encoding::Converter#replacement returns � when the destination encoding
is UTF-8 ERROR
NoMethodError: undefined method `replacement' for
#<Encoding::Converter:0x1212ee2a>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:17:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:4:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
105)
Encoding::Converter#replacement= accepts a String argument of arbitrary length
ERROR
NoMethodError: undefined method `replacement' for
#<Encoding::Converter:0x18d210ab>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:31:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:22:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
106)
Encoding::Converter#replacement= raises an TypeError if assigned a non-String
argument FAILED
Expected TypeError
but got NoMethodError (undefined method `replacement=' for
#<Encoding::Converter:0x50baa573>)
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:36:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:22:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
107)
Encoding::Converter#replacement= sets #replacement ERROR
NoMethodError: undefined method `replacement' for
#<Encoding::Converter:0x7445748>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:41:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:22:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
108)
Encoding::Converter#replacement= raises an UndefinedConversionError is the
argument cannot be converted into the destination encoding ERROR
NoMethodError: undefined method `primitive_convert' for
#<Encoding::Converter:0x17be3bb2>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:49:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:22:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
109)
Encoding::Converter#replacement= does not change the replacement character if
the argument cannot be converted into the destination encoding ERROR
NoMethodError: undefined method `primitive_convert' for
#<Encoding::Converter:0x4a412f4b>
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:57:in
`(root)'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyEnumerable.java:1290:in `all?'
org/jruby/RubyArray.java:1596:in `each'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:22:in
`(root)'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:3:in
`(root)'
org/jruby/RubyKernel.java:996:in `load'
/Users/asari/Development/src/jruby/spec/ruby/core/encoding/converter/replacement_spec.rb:56:in
`files'
org/jruby/RubyBasicObject.java:1753:in `instance_eval'
org/jruby/RubyArray.java:1596:in `each'
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email