diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-05-07 14:31:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-05-07 14:31:19 +0800 |
| commit | fc247449e29b26f07a9c6ba84c6dfaf0c6369f46 (patch) | |
| tree | 033831e019fb5db1515df9288c63c8dbb976d390 /mrbgems/mruby-bin-mirb/bintest/mirb.rb | |
| parent | 72581696d35e8da79a3a9d606294602c83abdf9f (diff) | |
| parent | 0c01afc3c9d3ec95badb6c463288376908bf18d7 (diff) | |
| download | mruby-fc247449e29b26f07a9c6ba84c6dfaf0c6369f46.tar.gz mruby-fc247449e29b26f07a9c6ba84c6dfaf0c6369f46.zip | |
Merge pull request #4017 from mimaki/mruby-d-option
Add `-d` option for `mruby` and `mirb`.
Diffstat (limited to 'mrbgems/mruby-bin-mirb/bintest/mirb.rb')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/bintest/mirb.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mirb/bintest/mirb.rb b/mrbgems/mruby-bin-mirb/bintest/mirb.rb index ed53321bd..f6f8cd869 100644 --- a/mrbgems/mruby-bin-mirb/bintest/mirb.rb +++ b/mrbgems/mruby-bin-mirb/bintest/mirb.rb @@ -10,3 +10,10 @@ assert('regression for #1563') do o, s = Open3.capture2('bin/mirb', :stdin_data => "a=1;b=2;c=3\nb\nc") assert_true o.include?('=> 3') end + +assert('mirb -d option') do + o, _ = Open3.capture2('bin/mirb', :stdin_data => "p $DEBUG\n") + assert_true o.include?('=> false') + o, _ = Open3.capture2('bin/mirb -d', :stdin_data => "p $DEBUG\n") + assert_true o.include?('=> true') +end |
