Sha256: 8f0b0060d547dfb77057cec7b2764ae9165eb53c71899b5090276abee26d0208

Contents?: true

Size: 569 Bytes

Versions: 23

Compression:

Stored size: 569 Bytes

Contents

##
# Symbol ISO Test

assert('Symbol') do
  assert_equal :"a", :a
  assert_equal :"a#{1}", :a1
  assert_equal :'a', :a
  assert_equal :'a#{1}', :"a\#{1}"
end

assert('Symbol', '15.2.11') do
  assert_equal Class, Symbol.class
end

assert('Symbol#===', '15.2.11.3.1') do
  assert_true :abc == :abc
  assert_false :abc == :cba
end

assert('Symbol#id2name', '15.2.11.3.2') do
  assert_equal 'abc', :abc.id2name
end

assert('Symbol#to_s', '15.2.11.3.3') do
  assert_equal  'abc', :abc.to_s
end

assert('Symbol#to_sym', '15.2.11.3.4') do
  assert_equal :abc, :abc.to_sym
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
script_core-0.0.6 ext/enterprise_script_service/mruby/test/t/symbol.rb
script_core-0.0.5 ext/enterprise_script_service/mruby/test/t/symbol.rb
esruby-0.2.0 resources/mruby/test/t/symbol.rb
esruby-0.1.5 resources/mruby/test/t/symbol.rb
esruby-0.1.4 resources/mruby/test/t/symbol.rb
esruby-0.1.3 resources/mruby/test/t/symbol.rb
esruby-0.1.2 resources/mruby/test/t/symbol.rb
esruby-0.1.1 resources/mruby/test/t/symbol.rb
esruby-0.1.0 resources/mruby/test/t/symbol.rb
esruby-0.0.11 resources/mruby/test/t/symbol.rb
esruby-0.0.10 resources/mruby/test/t/symbol.rb
esruby-0.0.9 resources/mruby/test/t/symbol.rb
esruby-0.0.8 resources/mruby/test/t/symbol.rb
esruby-0.0.7 resources/mruby/test/t/symbol.rb
esruby-0.0.6 resources/mruby/test/t/symbol.rb
esruby-0.0.5 resources/mruby/test/t/symbol.rb
esruby-0.0.3 resources/mruby/test/t/symbol.rb
esruby-0.0.2 resources/mruby/test/t/symbol.rb
esruby-0.0.0 resources/mruby/test/t/symbol.rb
script_core-0.0.4 ext/enterprise_script_service/mruby/test/t/symbol.rb