Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (20 sloc) 0.449 kB
d45ecc3 @bovi Complete ISO test cases for Hash, Range, String and Symbol
bovi authored
1 ##
2 # Symbol ISO Test
3
4 assert('Symbol', '15.2.11') do
5 Symbol.class == Class
6 end
7
0c2d740 @bovi Add more superclass tests
bovi authored
8 assert('Symbol superclass', '15.2.11.2') do
9 Symbol.superclass == Object
10 end
11
d45ecc3 @bovi Complete ISO test cases for Hash, Range, String and Symbol
bovi authored
12 assert('Symbol#===', '15.2.11.3.1') do
13 :abc === :abc and not :abc === :cba
14 end
15
16 assert('Symbol#id2name', '15.2.11.3.2') do
17 :abc.id2name == 'abc'
18 end
19
20 assert('Symbol#to_s', '15.2.11.3.3') do
21 :abc.to_s == 'abc'
22 end
23
24 assert('Symbol#to_sym', '15.2.11.3.4') do
25 :abc.to_sym == :abc
26 end
Something went wrong with that request. Please try again.