Created
March 16, 2012 00:47
-
-
Save jfirebaugh/2047967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/Development/rubinius ♢ ruby -v -e'puts "abc".encode("ASCII-8BIT").send(:concat, "123".encode("US-ASCII")).encoding' | |
| ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] | |
| ASCII-8BIT | |
| ~/Development/rubinius ♢ ruby -v -e'puts "abc".encode("ASCII-8BIT").send(:<<, "123".encode("US-ASCII")).encoding' | |
| ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] | |
| ASCII-8BIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sasha:rubyspec brian$ ../mspec/bin/mspec -truby1.9.3 core/string/plus_spec.rb
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
.................F
String#+ when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding FAILED
Expected #Encoding:US-ASCII
to equal #Encoding:ASCII-8BIT
/source/rubyspec/core/string/shared/concat.rb:194:in
block (4 levels) in <top (required)>' /source/rubyspec/core/string/plus_spec.rb:5:in<top (required)>'Finished in 0.025577 seconds
1 file, 18 examples, 92 expectations, 1 failure, 0 errors