summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mruby/bintest/mruby.rb
diff options
context:
space:
mode:
authorHiroshi Mimaki <[email protected]>2018-05-02 20:52:02 +0900
committerHiroshi Mimaki <[email protected]>2018-05-02 20:52:02 +0900
commit1d16646506ff7bc95d501deaee67740b08b218b5 (patch)
tree01b58abff8ffb0f58006f0ef4e89e27b40dfc1e3 /mrbgems/mruby-bin-mruby/bintest/mruby.rb
parent028e34d3452acd1eb5602b78ff5c52f4dbb8a1eb (diff)
downloadmruby-1d16646506ff7bc95d501deaee67740b08b218b5.tar.gz
mruby-1d16646506ff7bc95d501deaee67740b08b218b5.zip
Add `-d` option for `mruby` and `mirb`.
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb')
-rw-r--r--mrbgems/mruby-bin-mruby/bintest/mruby.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb
index b6b090185..3f6f3755d 100644
--- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb
+++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb
@@ -58,3 +58,10 @@ RUBY
assert_equal "NilClass", `#{cmd('mruby')} #{script.path}`
assert_equal 0, $?.exitstatus
end
+
+assert('mruby -d option') do
+ o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}>&1`
+ assert_equal o, "false\n"
+ o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}>&1`
+ assert_equal o, "true\n"
+end