source: EcnlProtoTool/trunk/mruby-1.2.0/test/t/symbol.rb@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 432 bytes
Line 
1##
2# Symbol ISO Test
3
4assert('Symbol', '15.2.11') do
5 assert_equal Class, Symbol.class
6end
7
8assert('Symbol#===', '15.2.11.3.1') do
9 assert_true :abc == :abc
10 assert_false :abc == :cba
11end
12
13assert('Symbol#id2name', '15.2.11.3.2') do
14 assert_equal 'abc', :abc.id2name
15end
16
17assert('Symbol#to_s', '15.2.11.3.3') do
18 assert_equal 'abc', :abc.to_s
19end
20
21assert('Symbol#to_sym', '15.2.11.3.4') do
22 assert_equal :abc, :abc.to_sym
23end
Note: See TracBrowser for help on using the repository browser.