Update test for `Kernel#local_variables`
MODIFY
test/t/kernel.rb
test/t/kernel.rb
@@ -52,11 +52,6 @@ assert('Kernel.lambda', '15.3.1.2.6') do
assert_equal Proc, m.class
end
-# Not implemented at the moment
-#assert('Kernel.local_variables', '15.3.1.2.7') do
-# Kernel.local_variables.class == Array
-#end
-
assert('Kernel.loop', '15.3.1.2.8') do
i = 0
@@ -334,11 +329,6 @@ assert('Kernel#lambda', '15.3.1.3.27') do
assert_equal Proc, m.class
end
-# Not implemented yet
-#assert('Kernel#local_variables', '15.3.1.3.28') do
-# local_variables.class == Array
-#end
-
assert('Kernel#loop', '15.3.1.3.29') do
i = 0
@@ -571,7 +561,8 @@ assert('Kernel.local_variables', '15.3.1.2.7') do
assert_equal [:a, :b, :c, :vars], Proc.new { |a, b|
c = 2
- Kernel.local_variables.sort
+ # Kernel#local_variables: 15.3.1.3.28
+ local_variables.sort
}.call(-1, -2)
end

Update test for `Kernel#local_variables`