Commit ccde2d3b authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

update ISO chapter number in test/t/kernel.rb

parent 431d1c8e
...@@ -127,11 +127,11 @@ assert('Kernel#dup', '15.3.1.3.9') do ...@@ -127,11 +127,11 @@ assert('Kernel#dup', '15.3.1.3.9') do
a.respond_to?(:test) == true && b.respond_to?(:test) == false && c.respond_to?(:test) == false a.respond_to?(:test) == true && b.respond_to?(:test) == false && c.respond_to?(:test) == false
end end
assert('Kernel#hash', '15.3.1.2.15') do assert('Kernel#hash', '15.3.1.3.15') do
hash == hash hash == hash
end end
assert('Kernel#loop', '15.3.1.2.29') do assert('Kernel#loop', '15.3.1.3.29') do
i = 0 i = 0
loop do loop do
...@@ -142,32 +142,31 @@ assert('Kernel#loop', '15.3.1.2.29') do ...@@ -142,32 +142,31 @@ assert('Kernel#loop', '15.3.1.2.29') do
i == 100 i == 100
end end
assert('Kernel#methods', '15.3.1.2.31') do assert('Kernel#methods', '15.3.1.3.31') do
methods.class == Array methods.class == Array
end end
assert('Kernel#nil?', '15.3.1.2.32') do assert('Kernel#nil?', '15.3.1.3.32') do
# TODO why is Kernel nil ???? nil.nil? == true
nil? == true
end end
assert('Kernel#private_methods', '15.3.1.2.36') do assert('Kernel#private_methods', '15.3.1.3.36') do
private_methods.class == Array private_methods.class == Array
end end
assert('Kernel#protected_methods', '15.3.1.2.37') do assert('Kernel#protected_methods', '15.3.1.3.37') do
protected_methods.class == Array protected_methods.class == Array
end end
assert('Kernel#public_methods', '15.3.1.2.38') do assert('Kernel#public_methods', '15.3.1.3.38') do
public_methods.class == Array public_methods.class == Array
end end
assert('Kernel#respond_to?', '15.3.1.2.43') do assert('Kernel#respond_to?', '15.3.1.3.43') do
respond_to? :nil? respond_to? :nil?
end end
assert('Kernel#send', '15.3.1.2.44') do assert('Kernel#send', '15.3.1.3.44') do
# test with block # test with block
l = send(:lambda) do l = send(:lambda) do
true true
...@@ -179,11 +178,11 @@ assert('Kernel#send', '15.3.1.2.44') do ...@@ -179,11 +178,11 @@ assert('Kernel#send', '15.3.1.2.44') do
send(:public_methods).class == Array send(:public_methods).class == Array
end end
assert('Kernel#singleton_methods', '15.3.1.2.45') do assert('Kernel#singleton_methods', '15.3.1.3.45') do
singleton_methods.class == Array singleton_methods.class == Array
end end
assert('Kernel#to_s', '15.3.1.2.46') do assert('Kernel#to_s', '15.3.1.3.46') do
# TODO looks strange.. # TODO looks strange..
to_s == '' to_s == ''
end 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