Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0d7d15e976dc
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4ec375902c07
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Aug 21, 2016

  1. Copy the full SHA
    701683e View commit details

Commits on Jan 10, 2018

  1. Merge pull request #4096 from brocktimus/stickers_symbols_with_encoding

    Extra tests for symbol encoding Re: #4070 + #3719 and possibly #3880
    kares authored Jan 10, 2018
    Copy the full SHA
    4ec3759 View commit details
Showing with 17 additions and 0 deletions.
  1. +17 −0 spec/regression/symbol_encoding_spec.rb
17 changes: 17 additions & 0 deletions spec/regression/symbol_encoding_spec.rb
Original file line number Diff line number Diff line change
@@ -8,4 +8,21 @@
it "should be US-ASCII after converting to string" do
expect(:foo.to_s.encoding.name).to eq("US-ASCII")
end

it "symbol with accents should preserve accents when converted to string" do
expect(:Renè.to_s).to eq("Renè")
end

it "symbol with accents should inspect to appropriate string" do
expect(:Renè.inspect).to eq(":Renè")
end

it "symbol of lambda character should convert to string" do
expect(.to_s).to eq("λ")
end

it "symbol of lambda character should inspect properly" do
expect(.inspect).to eq(":λ")
end

end