From 792f6ac6700469ddf9be8f87ca3376082f9af7f3 Mon Sep 17 00:00:00 2001 From: dearblue Date: Mon, 22 Feb 2021 23:32:18 +0900 Subject: 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`. --- mrbgems/mruby-binding/test/binding.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 mrbgems/mruby-binding/test/binding.rb (limited to 'mrbgems/mruby-binding/test') diff --git a/mrbgems/mruby-binding/test/binding.rb b/mrbgems/mruby-binding/test/binding.rb new file mode 100644 index 000000000..73742400f --- /dev/null +++ b/mrbgems/mruby-binding/test/binding.rb @@ -0,0 +1,5 @@ +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]")) +end -- cgit v1.2.3