[ruby/irb] Add assertion for dynamic_prompt's assertion execution (https://github.com/ruby/irb/pull/586)
Because the assertions for dynamic_prompt lives inside a block given to RubyLex, they could be skipped unnoticed if the setup is not correct.
dynamic_prompt
RubyLex
This commit adds a simple assertion to check if the block was actually executed.
[ruby/irb] Add assertion for dynamic_prompt's assertion execution
(https://github.com/ruby/irb/pull/586)
Because the assertions for
dynamic_promptlives inside a block given toRubyLex, they could be skipped unnoticed if the setup is not correct.This commit adds a simple assertion to check if the block was actually
executed.