summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-binding-core/test
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-02-22 23:32:18 +0900
committerdearblue <[email protected]>2021-02-22 23:32:18 +0900
commit792f6ac6700469ddf9be8f87ca3376082f9af7f3 (patch)
treef04a5ffe00d4f442286a833b06d472941b20c93c /mrbgems/mruby-binding-core/test
parent935ffa46a3a89a5f1662e5a4111ca0ed19566698 (diff)
downloadmruby-792f6ac6700469ddf9be8f87ca3376082f9af7f3.tar.gz
mruby-792f6ac6700469ddf9be8f87ca3376082f9af7f3.zip
Adjustment of the current HEAD and bindings, and separation
Make changes to make `Binding` work. At the same time, it separates `Binding#eval`, which depends on `mruby-eval`, from `mruby-binding-core`.
Diffstat (limited to 'mrbgems/mruby-binding-core/test')
-rw-r--r--mrbgems/mruby-binding-core/test/binding-core.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/mrbgems/mruby-binding-core/test/binding-core.rb b/mrbgems/mruby-binding-core/test/binding-core.rb
index 3bed9b31e..d93f43619 100644
--- a/mrbgems/mruby-binding-core/test/binding-core.rb
+++ b/mrbgems/mruby-binding-core/test/binding-core.rb
@@ -7,11 +7,5 @@ assert("Binding#local_variables") do
b = 1
binding
end
- assert_equal [:a, :b, :block], block.call(0).local_variables
-end
-
-assert("Binding#eval") do
- b = nil
- 1.times { x, y, z = 1, 2, 3; [x,y,z]; b = binding }
- assert_equal([1, 2, 3], b.eval("[x, y, z]"))
+ assert_equal [:a, :b, :block], block.call(0).local_variables.sort
end