summaryrefslogtreecommitdiffhomepage
path: root/test/t/kernel.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-10-26 01:11:04 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-10-28 00:29:30 +0900
commit5405b47f41b73e8eff821ea8e68a052d8e156086 (patch)
treeb24a049504631f82490d231de28af3e7e3e0f832 /test/t/kernel.rb
parent14877469d12c4d77e863b320d2d6867f09c31d0a (diff)
downloadmruby-5405b47f41b73e8eff821ea8e68a052d8e156086.tar.gz
mruby-5405b47f41b73e8eff821ea8e68a052d8e156086.zip
Update test for `Kernel#local_variables`
Diffstat (limited to 'test/t/kernel.rb')
-rw-r--r--test/t/kernel.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb
index e9bd24dc3..4bd102392 100644
--- a/test/t/kernel.rb
+++ b/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