Commit 5b96b41b authored by Daniel Bovensiepen's avatar Daniel Bovensiepen

Add Kernel Tests

parent 9e7ca5d9
......@@ -213,8 +213,8 @@ assert('Kernel#hash', '15.3.1.3.15') do
end
assert('Kernel#inspect', '15.3.1.3.17') do
s = nil.inspect
s.class == String and s == "nil"
s = inspect
s.class == String and s == "main"
end
assert('Kernel#instance_variables', '15.3.1.3.23') do
......@@ -270,7 +270,7 @@ assert('Kernel#methods', '15.3.1.3.31') do
end
assert('Kernel#nil?', '15.3.1.3.32') do
nil.nil? == true
nil? == false
end
assert('Kernel#object_id', '15.3.1.3.33') do
......@@ -337,6 +337,5 @@ assert('Kernel#singleton_methods', '15.3.1.3.45') do
end
assert('Kernel#to_s', '15.3.1.3.46') do
# TODO looks strange..
nil.to_s == ''
to_s == '#<Object:0x0>'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment