summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2013-06-14 22:19:02 +0800
committerDaniel Bovensiepen <[email protected]>2013-06-14 22:19:02 +0800
commit7177fdbd39f75f82f38cf3608d5ba023906edabb (patch)
treeac026403dfbed83525acf876c71109d6c9d1caec /test/t
parent7df35e930aac9fffcecd7791c21e3ddeed4ea90b (diff)
downloadmruby-7177fdbd39f75f82f38cf3608d5ba023906edabb.tar.gz
mruby-7177fdbd39f75f82f38cf3608d5ba023906edabb.zip
Improve Symbol Tests
Diffstat (limited to 'test/t')
-rw-r--r--test/t/symbol.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/t/symbol.rb b/test/t/symbol.rb
index b28573e92..e4ced61e0 100644
--- a/test/t/symbol.rb
+++ b/test/t/symbol.rb
@@ -2,25 +2,26 @@
# Symbol ISO Test
assert('Symbol', '15.2.11') do
- Symbol.class == Class
+ assert_equal Symbol.class, Class
end
assert('Symbol superclass', '15.2.11.2') do
- Symbol.superclass == Object
+ assert_equal Symbol.superclass, Object
end
assert('Symbol#===', '15.2.11.3.1') do
- :abc === :abc and not :abc === :cba
+ assert_true :abc == :abc
+ assert_false :abc == :cba
end
assert('Symbol#id2name', '15.2.11.3.2') do
- :abc.id2name == 'abc'
+ assert_equal :abc.id2name, 'abc'
end
assert('Symbol#to_s', '15.2.11.3.3') do
- :abc.to_s == 'abc'
+ assert_equal :abc.to_s, 'abc'
end
assert('Symbol#to_sym', '15.2.11.3.4') do
- :abc.to_sym == :abc
+ assert_equal :abc.to_sym, :abc
end