Sha256: 498f85f85ed1636f5ca6255511e544fc53de352c3bb34106521f98a874697462

Contents?: true

Size: 274 Bytes

Versions: 29

Compression:

Stored size: 274 Bytes

Contents

describe "String#intern" do
  it "returns the symbol corresponding to self" do
    "Koala".intern.should == :Koala
    'cat'.intern.should == :cat
    '@cat'.intern.should == :@cat
    'cat and dog'.intern.should == :"cat and dog"
    "abc=".intern.should == :abc=
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/string/intern_spec.rb
opal-0.4.3 spec/rubyspec/core/string/intern_spec.rb
opal-0.4.2 spec/rubyspec/core/string/intern_spec.rb
opal-0.4.1 spec/rubyspec/core/string/intern_spec.rb
opal-0.4.0 spec/rubyspec/core/string/intern_spec.rb
opal-0.3.44 spec/rubyspec/core/string/intern_spec.rb
opal-0.3.43 spec/rubyspec/core/string/intern_spec.rb
opal-0.3.42 spec/core/string/intern_spec.rb
opal-0.3.41 spec/core/string/intern_spec.rb
opal-0.3.40 spec/core/string/intern_spec.rb
opal-0.3.39 spec/core/string/intern_spec.rb
opal-0.3.38 spec/core/string/intern_spec.rb
opal-0.3.37 spec/core/string/intern_spec.rb
opal-0.3.36 spec/core/string/intern_spec.rb
opal-0.3.35 spec/core/string/intern_spec.rb
opal-0.3.34 spec/core/string/intern_spec.rb
opal-0.3.33 spec/core/string/intern_spec.rb
opal-0.3.32 spec/core/string/intern_spec.rb
opal-0.3.31 spec/core/string/intern_spec.rb
opal-0.3.30 spec/core/string/intern_spec.rb